In this repository we will see a Smart Contract for Tic-Tac-toe : a famous game using Solidity programming Language.
- Right Click anywhere on the screen.
- Click on Inspect.
- Go to Body Element.
- Change Font-Family to monospace.
- Change White-Space to pre-wrap.
- performMove -> Used to make a move.
- currentPlayerAddress -> Returning the address of the current player playing.
- currentPlayerShape -> Returning the shape of the current player playing
- winner -> Used to return the winner of the game.
- isGameOver -> To check whether we have a clear winner.
- winningPlayerShape -> Used to check whick player won the game according to the game rules.
- stateToString -> Used to display the game state at a current time.