An open API service indexing awesome lists of open source software.

https://github.com/morgankryze/connect-4

A simple connect-4 game built with python and blessed.
https://github.com/morgankryze/connect-4

ai connect-4 game minimax-algorithm

Last synced: 5 months ago
JSON representation

A simple connect-4 game built with python and blessed.

Awesome Lists containing this project

README

          

# Connect-4

> A simple connect-4 game built with python and blessed.

![Connect-4](src/assets/img/demo.png)

## Getting Started

### Docs

If you want to learn more about the project's flow, you can read the [docs](docs/flow.md) or the [minimax implementation](docs/minimax_implementation.md).

### Prerequisites

- [Python 3.9+](https://www.python.org/downloads/)
- [Pip](https://pip.pypa.io/en/stable/getting-started/)
- [Git](https://git-scm.com/downloads)

### Install

To install the game, start by cloning the repository:

```bash
git clone https://github.com/MorganKryze/Connect-4.git
```

Then, install the dependencies:

```bash
pip install -r requirements.txt
```

### How to use

To start the game, run the following command:

```bash
python src/main.py
```

Then use the arrow keys and enter to navigate the menu, and play the game using your numpad.

### Configuration

You can change the game settings by editing the `constants.py` file in the modifiable section (number of columns, lines or tokens available).

## Authors

- [**Morgan Kryze**](https://github.com/MorganKryze)
- [**MailiTurong**](https://github.com/MailiTruong)
- [**sheesh3218**](https://github.com/sheesh3218)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.