chessCAMO
|
#include "chess.h"
Functions | |
int | main () |
Simulates a chess game between two players. At any point, the player whose turn it is, can decide whether they want to continue, offer a draw, or resign. Depending on the response from the opponent (if required), the game either continue or end. If game continues, the player must choose a turn to make by selecting the source and destination squares corresponding to the piece they would like to move. Error checking exists to prevent invalid input. The console screen refreshes after a valid move is made and the board position is updated and printed to illustrate the current position. Relevant warning messages are displayed and the game ends when the engine detects that the game is over. More... | |
int main | ( | ) |
Simulates a chess game between two players. At any point, the player whose turn it is, can decide whether they want to continue, offer a draw, or resign. Depending on the response from the opponent (if required), the game either continue or end. If game continues, the player must choose a turn to make by selecting the source and destination squares corresponding to the piece they would like to move. Error checking exists to prevent invalid input. The console screen refreshes after a valid move is made and the board position is updated and printed to illustrate the current position. Relevant warning messages are displayed and the game ends when the engine detects that the game is over.