You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chess is a two-player strategy board game played on a chessboard, which is a checkered gameboard with 64 squares arranged in an 8×8 grid. There are a few versions of game types that people play all over the world. In this design problem, we are going to focus on designing a two-player online chess game.
6
+
7
+
System Requirements
8
+
===================
9
+
10
+
The system should support two online players to play a game of chess.
11
+
All rules of international chess will be followed.
12
+
Each player will be randomly assigned a side, black or white.
13
+
Both players will play their moves one after the other. The white side plays the first move.
14
+
Players can’t cancel or roll back their moves.
15
+
The system should maintain a log of all moves by both players.
16
+
Each side will start with 8 pawns, 2 rooks, 2 bishops, 2 knights, 1 queen, and 1 king.
17
+
The game can finish either in a checkmate from one side, forfeit or stalemate (a draw), or resignation.
18
+
19
+
Actors:
20
+
=======
21
+
Player: A registered account in the system, who will play the game. The player will play chess moves.
22
+
Admin: To ban/modify players.
23
+
24
+
Here are the top use cases for chess:
25
+
======================================
26
+
Player moves a piece: To make a valid move of any chess piece.
27
+
Resign or forfeit a game: A player resigns from/forfeits the game.
28
+
Register new account/Cancel membership: To add a new member or cancel an existing member.
0 commit comments