initial position file - o-jill/ruversi GitHub Wiki
file format to store board positions.
-
tag
tag's name after #.
regular expression:regex::Regex("#\s+(\S+) *").unwrap(); -
rfen
double-quoted RFEN text.
a rfen belongs to a tag before the rfen's line.
regular expression:regex::Regex("(\"[1-8A-Ha-h/] [bw]\")").unwrap(); -
others
other letters which does not match regular expressions above will be ignored.
# init 1
"/8/8/8/3Aa3/3aA3/8/8/8 b"
# one 4
"8/8/8/3Aa3/2C3/8/8/8 w", // c5
"8/8/8/3Aa3/3B3/4A3/8/8 w", // d6
"8/8/3A4/3B3/3aA3/8/8/8 w", // e3
"8/8/8/3C2/3aA3/8/8/8 w", // f4
# two 12
"8/8/8/2c3/2C3/8/8/8 b", // c5 c4
"8/8/8/3Aa3/2AaA3/2a5/8/8 b", // c5 c6
"8/8/8/3Aa3/2Ba3/4a3/8/8 b", // c5 e6
"8/8/8/2c3/3B3/3A4/8/8 b", // d6 c4
"8/8/8/3Aa3/3aA3/2aA4/8/8 b", // d6 c6
"8/8/8/3Aa3/3Aa3/3Aa3/8/8 b", // d6 e6
"8/8/3aA3/3aA3/3aA3/8/8/8 b", // e3 d3
"8/8/4Aa2/3Aa3/3aA3/8/8/8 b", // e3 f3
"8/8/4A3/3B3/3c2/8/8/8 b", // e3 f5
"8/8/3a4/3aB2/3aA3/8/8/8 b", // f4 d3
"8/8/5a2/3AaA2/3aA3/8/8/8 b", // f4 f3
"8/8/8/3C2/3c2/8/8/8 b", // f4 f5
# three
"8/8/1A6/2Ab3/2C3/8/8/8 w", // c5 c4 b3
...