23 ms·
i could not beat it, and i can't read that chess notation
by vladde 5mo ago
i could not beat it, and i can't read that chess notation
- DrammBA 5mo agothe notation is just an array of move tuples, each tuple contains 1 move for white and 1 move for black, where each move is written as <1st letter of piece name><destination square>
- thesuitonym 5mo agoThe letter is the piece to move, and the number is the index to move to, starting from 1 on the left. The first alphanumeric pair is your move, then the computer's move. Comma. Your move, computer's move...
- qup 5mo agoThe first move after the comma is yours (open with kNight to 4), and the second move is apparently predetermined or always chosen.
- burnt-resistor 5mo agoThere's a coordinate-based solution in the source code issues. I couldn't elucidate that notation either. https://github.com/Rowan441/1d-chess/issues/1 https://github.com/Rowan441/1d-chess/issues/1 Edit: There's a second solution where instead of moving the rook back 2, move the king forward one and the take the black knight with the rook as the checkmate move.