Skip to content

Commit

Permalink
Update tic-tac-toe.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinLinus authored Oct 27, 2020
1 parent 4fc9695 commit 1fd048f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tic-tac-toe.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The game [Tic Tac Toe](https://en.wikipedia.org/wiki/Tic-tac-toe) represented in
Scriptless scripts and the replace-by-fee mechanism are used to implement the full game logic.

Before the game starts the tree of possible moves is scaffolded out. There are 26830 different games. Every possible move is represented by a transaction with a 2-of-2 MuSig splitting the key among both players.
All of these transactions compete to spend the same output. If any transaction hits the chain it gives the bitcoins to the current player (or returns it in case of a draw). There are no further scripts.
All of these transactions compete to spend the same output. If any transaction hits the chain it gives the bitcoins to the current player (or refunds both players in case of a draw). There are no further scripts.
In the non-cooperative case older transactions are replaced by newer transactions via the replace-by-fee mechanism.

Before the game starts, each player traverses the tree of game states and signs every possible move of their opponent. The player subtracts his signature by his signature of the parent transaction that leads to this particular game state.
Expand Down

0 comments on commit 1fd048f

Please sign in to comment.