Skip to content

Srinivas-VJ/Chess

Repository files navigation

Chess

  • A two player chess game.
  • Can be played from the terminal.

Rules

The player controlling the white pieces is named "White", the player controlling the black pieces is named "Black". White moves first, then players alternate moves. Making a move is required, it is not legal to skip a move, even when having to move is detrimental. Play continues until a king is checkmated, or a draw is declared due to 50 inactive move rule.

About

  • This version does not include the En passant rule. If you want to learn more about this rule click here.
  • Works on Mac ,linux and other online compliers. Some formatting will not work on some IDEs and Windows.
  • There is no timer or any kind of time constrain.
  • Here's what the game looks like,

demo

Game

How to play

  • Each position on the board is representated by a row number from 1 to 8 and a column alphabhet from 'a' to 'h'.
  • The player can enter the move by typing:-
    • The column alphabhet and the row number of the pawn they want ot move followed by the column alphabhet and the row number of the position they want their pawn to move to.
    • For example a2a4 will move the pawn at column 'a', row 2 to position column 'a', row 4.
    • spaces inbetween or capital letters are not accepted.
    • the player can enter 'r' or 'R' to resign at any stage of the game.

Thank you.

About

A two player chess game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages