Skip to content

Kai-Bailey/Connect-Four

Repository files navigation

Connect-Four

A recreation of the popular game of Connect-Four featuring an AI player with multiple difficulties. This web app was built purely using Rust and WebAssembly. We used Rocket as the backend framework, Yew as the frontend framework, and Cargo-Web as the build tool. Check out this sweet video for more details!

Get Started

Install build dependencies

sudo apt install -y build-essential pkg-config libssl-dev

Build the frontend

cargo install -f cargo-web

Go to the connect-four-frontend directory, then run:

bash build.sh

Install the database

Install and start MongoDB: https://www.mongodb.com/download-center/community

Start the backend

rustup default nightly

Go to the connect-four-backend directory, then run:

cargo run

See the result

Open the game at http://localhost:8000/

Run the CLI

Go to the connect-four-cli directory, then run:

cargo run

Built By

Dinula, Hugo and Kai

About

Connect-Four WebApp Built With Rust!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages