Skip to content

SirRhynus/connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect 4

A personal implementation

This is a personal implementation of the connect 4 game. This is made in Python3 and played in the terminal.

Installing / Getting started

To run this you'll need Python3 installed and the dependencies in requirements.txt. You can install those globally by typing pip install -r requirements.txt, but I would suggest creating a virtual environment for this project using venv.

Venv

To create a virtual environment en install the dependencies type:

python3 -m venv .
source bin/activate
pip install -r requirements.txt

This will create a venv in the current directory, activate it and install the dependencies.

Conda

You can also manage the dependencies using conda.

conda env create -f environment.yml

This will create and activate the environment.

Running the game

To run the game type

python -m connect4

or run

python -m connect4 -h

to see extra options.

To play game simply type the number of the column you want the put the disc in and press enter.

Features

Different playstyles of this game:

  • Play locally against another player
  • Play locally against a bot
  • Play online against another player

Playing online

Playing online hasn't been fully tested and may run into some problems with NAT. If you want to test it and maybe solve this, please do.

Licensing

The code in this project is licensed under The Unlicense.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages