Re:Students at Berlin University Build Chess Game on Ethereum
by onion2k on Tuesday September 06, 2016 @07:39PM
(#12440038)
There isn't really any need to check the board state is in checkmate anyway. It's a nice feature, but admitting checkmate is essentially the same as resigning, so just let the player carry on and give them an "I resign" button. They can't make a move, they have no choice but to click it. If they don't click it within a given timeframe that's the same as if they just walked away mid-game.
You'd probably need a second button that instigates the stalemate procedure if both players have pressed it because that's a much more complex problem.
You'd probably need a second button that instigates the stalemate procedure if both players have pressed it because that's a much more complex problem.