Anshroid / Prizmchess

Chess for the Prizm fx-CG50 graphical calculator
https://anshroid.github.io/projects/prizmchess/
1 stars 1 forks source link

Piece Storage #4

Open Anshroid opened 1 year ago

Anshroid commented 1 year ago

Figure out how to store the 2D vector of pieces on the board. Shouldn't be too complex, I overdid this in my version.

Harik-Sodhi commented 1 year ago

std::any boardPos[64] = ("a", 2, ..., "h", 8); Where we list the positions of every piece in the order: WPawn a-h WKing Wking WBishop c f WKnight b g WRook a h Then, repeat for black. Or use FEN

Harik-Sodhi commented 1 year ago

FEN or EPD is probably best

Anshroid commented 1 year ago

Do we handle piece moves in the FEN? Like, if white plays e4 do we not have to convert from FEN to a int[8][8] and modify that?