Skip to content

Commit

Permalink
feat(engine): en passant, complete castling, move generator, perft (#3)
Browse files Browse the repository at this point in the history
* add en passant + castling checks

* move generator; initial perft test, many bugs fixed

* make go happy

* finish perft tests & main engine bugfixing
  • Loading branch information
thehowl authored Aug 30, 2023
1 parent c633937 commit c3a4669
Show file tree
Hide file tree
Showing 3 changed files with 541 additions and 39 deletions.
1 change: 1 addition & 0 deletions realm/chess.gno
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ func MakeMove(gameID, from, to string, promote Piece) Game {
}

// TODO add endgame conditions
// checkmate, stalemate, 75-move-rule, 5-fold-repetition

// add move and record new board
g.Moves = append(g.Moves, m)
Expand Down
Loading

0 comments on commit c3a4669

Please sign in to comment.