This is a multiplayer chess game. First you enter your username and password and if you don’t have a one you can create a new account then you enter the players’ name and the time of the game you want. So our chess game has the same rules as the regular chess game but with some differences in the moves of some pieces.The eaten pieces of each player displayed on the sidebar. the game end when one of the players is checked or when the time of one of the player ended.
- A Pawn captures (eats) the squares diagonally or the piece in front.
- The Bishop (elephant) can only move three steps on the diagonal and bypass any pieces. The Bishop also has a new special move, which is to move one square on the horizontal axis so it changes the diagonal color.
- The knight can move in an L shape, with two squares horizontally or vertically, and then three squares in the perpendicular direction.
- The valid moves are highlighted green and the illegal move highlighted red.
The user can create new account credentials “username, password and email”.
If the credentials are incorrect, an error message is displayed.
Upon login, the user can either:
i. Play a new game, when starting a new game, prompt the user to
enter the name of each player. (Also prompt the user to set the timer).
ii. The score of the game are retrieved at the end.