Tictactoe game on Ink, substrate chain

  1. Substrate and Ink are as of now on Rust lang. We need to install the Rust language, Cargo package manager and Substrate framework:
# install rust and update environmentcurl https://sh.rustup.rs -sSf | sh
source ~/.cargo/env
# run rust updates and add WebAssembly target supportrustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
# Install Substrate with the following command:curl https://getsubstrate.io -sSf | bash
apt install binaryen
apt install wabt
cargo install pwasm-utils-cli --bin wasm-prune
cargo install --force --git https://github.com/paritytech/ink cargo-contract
substrate --dev
Fig: blocks being produced by node in terminal.
Fig: Polkadot UI dashboard
cargo contract new tictactoe
Fig: Standard structure of contract
cd tictactoe
chmod +x build.sh

--

--

--

Blockchain Engineer | Distributed system | Ex- Red Hat | Ethereum foundation grantee

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ankit Raj

Ankit Raj

Blockchain Engineer | Distributed system | Ex- Red Hat | Ethereum foundation grantee

More from Medium

Crypto Ninjas AMA - Ingo Rübe (Founder/CEO de KILT Protocol)

Tether’s USDT Stablecoin Enters Polkadot Ecosystem With Kusama Launch

Why zkCloud is a new era of privacy?

European Parliament Rejects Proof-of-Work Blockchain Regulations