Two reasons: (1) it's annoying to test with multiple files because my browsers cache separate js files, and I have to remember to clear my cache before every test, otherwise my code changes don't take effect (2) shareware is easier to deploy as a single file rather than a folder
1 deposit transaction 9 while each player takes a turn marking the board 1 withdrawal transaction So there are 11 transactions in the most expensive case The middle 9 transactions are skipped if there is no dispute, leaving only 2 transactions, a deposit and a withdrawal
I can only imagine how many combinations you'd have for games like checkers, chess, and go!
Cool demo! But quick question: why not using js files for the code instead of putting it all in the html page?
Two reasons: (1) it's annoying to test with multiple files because my browsers cache separate js files, and I have to remember to clear my cache before every test, otherwise my code changes don't take effect (2) shareware is easier to deploy as a single file rather than a folder
How many transactions for a whole game should be done on chain in a worst case?
1 deposit transaction
9 while each player takes a turn marking the board
1 withdrawal transaction
So there are 11 transactions in the most expensive case
The middle 9 transactions are skipped if there is no dispute, leaving only 2 transactions, a deposit and a withdrawal
@@highlevelbitcoinisn't "accept" transactions are also needed for each turn?