SaitoTech / saito-lite-rust

a version of the Saito-Lite client written for compatibility with the Saito Rust client and binary data format
24 stars 28 forks source link

(PROD) Chess: Same player can offer a "draw" and accept it as well #1901

Closed afkafk088 closed 1 year ago

afkafk088 commented 1 year ago

Steps: 1) Player A offers a "draw" to Player B 2) Player A repeats the process 3) Player A can somehow accept his own offer and Win the game

Issues: 1) A player should not be able to accept his/her own draw offer 2) When the draw offer is accepted, the game should result as a "draw". not a "win"

https://github.com/SaitoTech/saito-lite-rust/assets/107991527/41ca3dea-6537-4270-8476-777cb2430228

f8daniel commented 1 year ago

1) fixed: You cannot accept your own draw offer. 2) A draw = a tie = both players are winners...