Skip to content

This repository is about a smart Contract of the game Tic-Tac-toe using Solidity.

Notifications You must be signed in to change notification settings

Debopom-Banerjee/Tic-Tac-Toe-Smart-Contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Tic Tac Toe : Smart Contract using Solidity

In this repository we will see a Smart Contract for Tic-Tac-toe : a famous game using Solidity programming Language.

Tips: Before we Begin

To view your result as expected , Follow this steps :

  • Right Click anywhere on the screen.
  • Click on Inspect.
  • Go to Body Element.
  • Change Font-Family to monospace.
  • Change White-Space to pre-wrap.


Task Done: Functions used in this Contract.

  • 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.

Screenshot of the working contract .

Screenshot 2022-10-14 230458

About

This repository is about a smart Contract of the game Tic-Tac-toe using Solidity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published