xaya / libxayagame

MIT License
21 stars 19 forks source link

Ships: Simplify ending flow for a game #103

Closed domob1812 closed 3 years ago

domob1812 commented 3 years ago

Currently, when a game of Xayaships ends, the loser is supposed to sign a statement that they lost as their last move, and then the winner publishes that on chain to close the channel. This can be simplified. Instead, we should change the boardrules such that once a game is done, no more moves can be made (i.e. remove the "sign winner statement" last move). And instead of closing the channel on chain by providing the signed winner statement, the loser will simply send a move to close the channel without any need for signing stuff in addition.

For this, we should follow these steps: