Skip to content

michael-zucchetta/connect-four-rust-web-assembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect Four with Rust and Web Assembly

A screenshot of the game:

alt tag

Intro

I implemented this as an exercise to learn Rust and WebAssembly's world. The game AI is built with the Montecarlo method and the difficulty is determined by the number of moves for which the Montecarlo method is applied (the harder the difficulty, the slower the game is going to be).

Getting Started

Need the following steps for setting up the environment:

  • curl https://sh.rustup.rs -sSf | sh -s -- --channel=nightly
  • cargo install cargo-web
  • rustup install nightly
  • rustup target add wasm32-unknown-emscripten
  • rustup default nightly

And then run:

cargo-web start

About

A Rust implementation of the popular game Connect Four with some variations, that compiles in web-assembly

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published