diff --git a/packages/hardhat/contracts/TicTacToe.sol b/packages/hardhat/contracts/TicTacToe.sol index 56f4e2a..34b99b8 100644 --- a/packages/hardhat/contracts/TicTacToe.sol +++ b/packages/hardhat/contracts/TicTacToe.sol @@ -307,6 +307,10 @@ contract TicTacToe { return games[_gameId].moves % 2 == 0 ? 1 : 2; } + function getNumberOfMoves(uint256 _gameId) public view returns (uint8) { + return games[_gameId].moves; + } + function getBoard(uint256 _gameId) external view returns (uint8[9] memory) { return games[_gameId].board; } diff --git a/packages/nextjs/components/Header.tsx b/packages/nextjs/components/Header.tsx index 11d9754..1bfe22c 100644 --- a/packages/nextjs/components/Header.tsx +++ b/packages/nextjs/components/Header.tsx @@ -92,12 +92,7 @@ export const Header = () => {
TicTacToe - - Made with{" "} - - Scaffold-ETH 2 - - + Made with Scaffold-ETH 2