News for hackers. Stuff that matters.
Re:Learn to Code Ethereum DApps by Building Your Own Game by albertgoeswoof on Wednesday January 10, 2018 @09:52AM (#16115264)
> If players are taking turns, they can sign the state changes as they go, and submit the final couple moves to the blockchain.

This is the same way that the lightning / plasma network works, right?

Re:Learn to Code Ethereum DApps by Building Your Own Game by theptip on Wednesday January 10, 2018 @10:57AM (#16115855)
It's one half of it; Lightning also needs a "time lock" mechanism to somehow execute payment for the committed balance of the channel if one party unilaterally abandons it. This is quite complex involving both parties holding a delayed and revokable payment from the other party.

In the case of a game, this might be simpler since you can have each player sign their own moves and the other player's last move, so that you can always broadcast your opponent's last move if they quit.

Re:Learn to Code Ethereum DApps by Building Your Own Game by DennisP on Wednesday January 10, 2018 @11:41AM (#16116418)
It's not too complicated on Ethereum. Here's some sample code, which Raiden devs have told me works much like their system.

http://www.blunderingcode.com/a-lightning-network-in-two-pag...

Re:Learn to Code Ethereum DApps by Building Your Own Game by DennisP on Wednesday January 10, 2018 @10:53AM (#16115813)
Yes, Lightning is similar, the previous blog post covers that. Plasma is a bit different, I'm still wrapping my head around it.