Skip to content

grey220022/Fehackathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Here is how you can run the tic tac toe game with local blockchain

  1. Install fe lang and Foundry. Make sure that the "fe_mac" (or fe) command and the "anvil" command works well locally. Install python 3.10+

  2. Compile the smart contract tictactoe.fe ./fe_mac build tictactoe.fe --overwrite or (./fe build tictactoe.fe --overwrite ) for non-mac user

  3. launch "anvil" command to launch the blockchain locally. Write down the private key

  4. deploy the smart contract with

"cast send --rpc-url localhost:8545 --private-key {{private_key}} --create $(cat output/TicTacToe/TicTacToe.bin)"

  1. get the private key from the "anvil" command terminal and modify the file "config.ini" according the contract address and the private key. Save the file "config.ini"

  2. Launch the game with

    "python tictactoe.py"

About

A tic tac toe game in FE lang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages