Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Latest commit

 

History

History
55 lines (34 loc) · 1.22 KB

README.md

File metadata and controls

55 lines (34 loc) · 1.22 KB

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