This game is a test only. I need a dApp with etherium contracts to solve https://gitcoin.co/issue/nervosnetwork/grants/8/100026214 so i created a own one to port it now to nervos block chain
A version that is connected to: Rinkeby Testnetzwerk, you can find here: http://hangman.ethereum.testnet.helmig.berlin/
- trullfe
- nodejs
npm i -g [email protected]
docker run -d -p 8545:8545 --name gnache trufflesuite/ganache-core
trouffle init truffle compile truffle migrate // truffle migrate --reset
truffle console hangman = await Hangman.deployed() hangman.createGame("TEST") // upper case no # hangman.guessALetter("A") // upper case
(await hangman.gameStatus()).toNumber()
(await hangman.trysLeft()).toNumber()
(await hangman.winner()).toNumber()
(await hangman.burnedLettersLength()).toNumber()
await hangman.burnedLetterFromPostion(0))
(await hangman.prizeWordLength()).toNumber()
(await hangman.prizeWordCharFromPostion(0))
(await hangman.lettersLength()).toNumber()
await hangman.lettersLength(0))