Skip to content

sergiolealandres/ChessEngine

Repository files navigation

CHESS MODULE INSTRUCTIONS

STARTING A GAME

At the beginning of the game, you must choose a side by typing w to play as White or b to play as Black (then press ENTER).

MOVES

The format used to input moves via keyboard is as follows:
(P)from(x)to(=C), where:

  • P corresponds to the piece being moved (uppercase). It is omitted if a pawn is moving.
  • from is the square from which the piece moves (lowercase).
  • x is written only if there is a capture. If not, it is omitted.
  • to is the square to which the piece moves (lowercase).
  • =C is added in case of promotion, where C is the piece promoted to (uppercase).
  • For castling, use 0-0 for kingside castling and 0-0-0 for queenside castling.

EXAMPLES

  • Pawn from e2 to e4: e2e4
  • Knight from b1 to c3: Nb1c3
  • Rook from h8 to h2: Rh8h2
  • Bishop from h2 to g3 with capture: Bh2xg3
  • Queen from h5 to h1: Qh5h1
  • Kingside castling: 0-0
  • Queenside castling: 0-0-0
  • Pawn from h7 to h8 promoted to queen: h7h8=Q

ADDITIONAL COMMANDS

exit:

Ends the game immediately in its current state.

mod:

Allows the engine to make a move instead of the player.
⚠️ Warning: If you're playing as White and use mod, you'll also need to use mod again when it's Black's turn. After that, the engine will continue playing automatically following your moves.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published