Skip to content

juankohler/starkludo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StarkLudo

Ludo game, on Starknet

What is StarkLudo?

StarkLudo is an online classic board game enjoyed by people of all ages. It’s a game of chance and strategy, where players race their game pieces around the board to be the first to reach the finish line.

The objective is to move all four of your game pieces around the board and reach the finish line first and the gaming experience should be on chain fostering togetherness and entertainment while competing amongs friends and loved ones. With the on-chain interaction the players that wins every round of the game will be rewarded with a token.

Development

Steps to build and run StarkLudo locally

Install tools

  1. Install pnpm
npm install -g pnpm
  1. Install Dojo
# Install dojoup
curl -L https://install.dojoengine.org | bash

# Install Dojo release
dojoup --version v1.0.0-alpha.6

Build and run StarkLudo

Client

# Navigate to the client directory
cd client

# Install dependencies
pnpm i

# Run 
pnpm dev

Onchain

Requires 2 terminals to run

In both terminals, ensure you are in the onchain directory. You can navigate into the onchain directory by running this command from the root directory: cd onchain

  • Terminal 1
# Start Katana
katana --disable-fee  --allowed-origins "*"
  • Terminal 2
# Build contracts
sozo build

# Deploy contracts to Katana
sozo migrate apply

# Run Torii with World address generated from previous command
torii --world <WORLD ADDRESS> --allowed-origins "*"

To locate the world address, scan through the output generated from running sozo migrate apply, locate the line similar to: image

License

This project is licensed under the MIT License. See License for more information

Contributing

For more info and guidance on contributing, join the contributors Telegram group: https://t.me/+hnjQooODZOA2M2Rk

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 69.4%
  • SCSS 17.3%
  • Cairo 11.6%
  • Other 1.7%