Skip to content

CieriA/rusty-connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Connect 4 with SDL2

A Connect 4 clone written in Rust using the SDL2 graphics library.

Features

  • Pass-to-play game with 2 players
  • GUI with SDL2

Requirements

  • Rust (stable)
  • SDL2 — graphics and input

Rust installation

Install Rust via rustup

SDL2 installation

Windows

Use vcpkg or manually install SDL2 developer packages. Make sure the .ddl files are in your PATH or project folder at runtime.

macOS (using Homebrew)

brew install sdl2

Linux

sudo apt install libsdl2-dev

Building and running the project

Clone the repository and build in release mode:

git clone https://github.com/CieriA/rusty-connect4
cd rusty-connect4
cargo build --release

To run the game:

cargo run --release

Game controls

  • Left mouse click — place the piece

Development notes

This project was made to learn more about the SDL2 library.

This project uses the following crates:

  • sdl2

TO regenerate documentation locally:

cargo doc --open

License

This project is licensed under the ISC License. For more info see the LICENSE file.

About

A Connect 4 clone written in Rust with SDL2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages