A Connect 4 clone written in Rust using the SDL2 graphics library.
- Pass-to-play game with 2 players
- GUI with SDL2
Install Rust via rustup
Use vcpkg or manually install SDL2 developer packages.
Make sure the .ddl files are in your PATH or project folder at runtime.
brew install sdl2sudo apt install libsdl2-devClone the repository and build in release mode:
git clone https://github.com/CieriA/rusty-connect4
cd rusty-connect4
cargo build --releaseTo run the game:
cargo run --release- Left mouse click — place the piece
This project was made to learn more about the SDL2 library.
This project uses the following crates:
- sdl2
TO regenerate documentation locally:
cargo doc --openThis project is licensed under the ISC License. For more info see the LICENSE file.