webapp branch of the React App project tic-tac-toe contains a tic-tac-toe game with only front-end code. We will start from this branch and implement a contract version of tic-tac-toe game step by step.
scryptlib can be installed via
// use NPM npm install scryptlib // use Yarn yarn add scryptlib
Tictactoe, instantiate new object named
game using the class, and call the function called
const Demo = buildContractClass(compileContract('demo.scrypt')); const demo = new Demo(7, 4); const result = demo.add(11).verify() assert(result.success);
Clone the React App project tic-tac-toe. and switch to the