Skip to content

mgayatri77/Starknet_Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go on StarkNet

This directory contains the Cairo contract, unit tests and driver scripts for running Go on StarkNet Testnet. Cairo does not support loops, so a lot of functions are implemented recursively.

Executing Contract

Setup an account on Starknet along with the required environment variables as described here - https://starknet.io/docs/hello_starknet/account_setup.html. Then in the scripts folder run "run_game.py" to execute a sample game with 20 pre-defined moves. This script can be modified as required to investigate how the contract behaves. All functions annotated with @external or @view tags can be invoked or called.

Local Testing

In the tests folder modify tests.py to perform any unit tests locally. To compile Cairo code, find instructions here - https://starknet.io/docs/quickstart.html#quickstart

TBD

  1. Scoring within Starknet contract
  2. Player pass functionality
  3. GUI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages