#0
nonstandard
0.00007000 BSV
Q!óÂδóñK MùfÎ
~}þ©
õ2Q®M{"__cls":"class GameContract{\n constructor(pKeyOwner,playerIdOwner,wagerAmount){\n this.gamePlayState = 0;\n this.pubKeyCreator = pKeyOwner;\n this.pubKeyOpponent = null;\n this.creatorId = playerIdOwner;\n this.opponentId = null;\n this.createdAt = new Date().getTime();\n this.updatedAt = new Date().getTime();\n this._amount = wagerAmount;\n this.moves = [];\n this._owners = [pKeyOwner];\n this.wagerState = 0;\n }\n addOpponent(pKey,playerId){\n if(!this.pubKeyOpponent){\n this.pubKeyOpponent = pKey;\n this.opponentId = playerId;\n this.wagerState =1;\n this.gamePlayState = 1;\n this._owners.push(pKey);\n }\n \n }\n \n closeWager(amount,playerId){\n if(amount === this._amount && playerId === this.opponentId){\n this.wagerState = 1;\n }\n }\n \n isValidPayloadMove(move){\n \n }\n isValidMove(fen){\n \n }\n addMove(move){\n \n }\n claimWin(){\n \n }\n \n }","__index":{"obj":0},"__func":"constructor","__args":["0206f3c29cce1ab4f391f14b0f82204d92f9021c66ce0a7e7d19fe93a90df5321a","ccf166419bc12644ef32cfb75a38f2cffda3ec894155eb173bf4c8c869e94566",7000]}u
https://whatsonchain.com/tx/fa2c2f1bcbb9e6cca058f32b632817e25a8aa06f688ea9a7588eab0ccf2f597d