-
Notifications
You must be signed in to change notification settings - Fork 0
fix: ChessValidate #19
Copy link
Copy link
Open
Labels
area: gameplayIssues or PRs related to gameplayIssues or PRs related to gameplayarea: networkIssues or PRs related to networking and multiplayer supportIssues or PRs related to networking and multiplayer support
Metadata
Metadata
Assignees
Labels
area: gameplayIssues or PRs related to gameplayIssues or PRs related to gameplayarea: networkIssues or PRs related to networking and multiplayer supportIssues or PRs related to networking and multiplayer support
Projects
Status
Backlog
[remote] ChessValidate [state=] [player1=] [player2=] [move=] [board=<64characters>]: Validate the current state of the game, names and seats of the players, current move number (starting with 0 before the opening move is made), and the state of the entire board. Standard piece character abbreviations are used (see above). If you receive this (remote=true) then validate each item against your own game state and, if any discontinuity is found:
i. Print a detailed report to the DevConsole log, noting all discontinuities;
ii. Send ChessDisconnect reason="VALIDATION FAILED" to your opponent;
iii. Disconnect.
b. Example: “ChessValidate” // I’m initiating a validation; all info will be sent to opponent…
c. …and then “ChessValidate state=Player1Turn player1=Squirrel player2=Matt move=0 board=RNBKQBNRPPPPPPPP................................pppppppprnbkqbnr remote=true” // …would be received by my opponent as a result
d. Valid game state strings include: “Player1Turn”, “Player2Turn”, and “GameOver”