logoalt Hacker News

vladdetoday at 4:37 PM4 repliesview on HN

i could not beat it, and i can't read that chess notation


Replies

thesuitonymtoday at 4:54 PM

The 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...

quptoday at 5:07 PM

The first move after the comma is yours (open with kNight to 4), and the second move is apparently predetermined or always chosen.

DrammBAtoday at 4:54 PM

the 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>

burnt-resistortoday at 5:58 PM

There'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

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.