Chess Project Protocol Spec
The following listed the table of contents for the protocol specification:
1. Chess Project Description
2. Chess Background
2.1 Rules of chess
2.1.1 The King
2.1.2 The Queen
2.1.3 The Rook
2.1.4 The Bishop
2.1.5 The Knight
2.1.6 The Pawn
2.2 Special Moves
2.2.1 Castling
2.2.1 En Passant
3. Notational System
4. Rating System
Rating system example
5. Time chess
5.1 n/k game
5.2 Game/k game
5.1 Daily game
6. Other functionalities
7. Customer Story Cards (3 x 5 cards)
8. Appendix
9. Reference
Furthermore, I have built a list of command as well. Based on our project requirement, I created a list of sample command:
REG USERNAME [blogger]
REG PASSWORD [Bl0gMe2006]
REG EMAIL [foo@bar.com]
LOGON USERNAME [blogger]
LOGON PASSWORD [Bl0gMe2006]
N/K_TIMEOUT_LOSER=[8899]
DAILY_TIMEOUT_LOSER=[3401]
NEXT_TIMED_ALLOTMENT=[00:03:25]
REQUEST_REMAIN_MOVE
REQUEST_REMAIN_TIME
REMAIN_MOVE [21]
REMAIN_TIME [01:30:13]
MOVE [e4]
LOG_MOVE [on]
SECRET_CODE [rcblog], USERNAME [blogger], PASSWORD [SanDiego]
WINNER [Player ID: 8899], RANK [1513]
LOSER [Player ID: 4444], RANK [1587]
TIE_GAME
ACCEPT [message]
ERROR [message]
REQUEST_GAME_ID
REPLY_GAME_ID [002831]
REQUEST_PLAY [002831]
ACCEPT [002831]
REJECT [002831]
AVAILABLE_TIME [2006-3-21] [19:20]
GAME_TYPE [n/k]
DISPLAY_NAME [on]
AVAILABLE_TIME [2006-3-22] [11:50]
GAME_TYPE [game/k]
DISPLAY_NAME [on]
AVAILABLE_TIME [2006-7-1] [21:35]
GAME_TYPE [daily]
DISPLAY_NAME [off]
LIST_ONLINE_PLAYERS
RANK [2503], GAME_ID [002831], GAME_TYPE [game/k]
RANK [2499], GAME_ID [341932], GAME_TYPE [n/k]
…
…
RANK [1587], GAME_ID [314883], GAME_TYPE [daily]
RANK [1513], GAME_ID [039188], GAME_TYPE [n/k]
LIST_ALL_PLAYERS
RANK [2579], PLAYER_NAME [ChessGrandMaster]
RANK [2503], PLAYER_NAME [SDSU_Student]
…
…
RANK [1587], PLAYER_NAME [UNKNOWN]
RANK [1513], PLAYER_NAME [Beginner]
0 Comments:
Post a Comment
<< Home