Arcadeum is a collection of Solidity smart contracts as well as a TypeScript library for verifying turn-based games implemented as finite state machines in Solidity.
Usage / Dev
Tools:
Install node v8.x or v10.x
yarn install
yarn bootstrap
yarn build
Client
cd client/
yarn test
yarn build
Ethereum
cd ethereum/
yarn ganache -- run in a separate terminal and import one of the private keys other than the first one into MetaMask
yarn migrate
Server
Install redis-server and have it running in the background
cd server/
make run
Running TTT example
cd examples/ttt/
yarn install -- this is required because ttt is configured outside of the arcadeum workspace
yarn build -- this will compile the TTT.sol ethereum contract
yarn migrate -- migrate the contract to the ganache testrpc