Skip to content

Connect 4 command-line game | Algorithms and Datastuctures practice

Notifications You must be signed in to change notification settings

kisimoff/Connect_4_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect 4 Game written in C

How to run it?

-To compile and run the game you need Visual Studio C++ Compiler or the Gnu Compiler Collection. -Download the soruce code "connect4.c" -The process is easy and straight-forward, just open up Developer Command Prompt and navigate to the source-code directory using "cd" command. -Execute: cl connect4.c -Execute: connect4

The program is now running. You should be able to see the main screen. Follow the instructions and have fun playing!

To get more matrix vibes execute (before starting the program) the command: color 02

Basic description of the features:

1. Start a Game

Starts with Player 0 which corresponds to '0' as a playing piece. Just input a desired column number. Button 9 is used as a back (undo) button. If you undo by mistake you can redo, but you can redo, only if you have pressed undo the last move.

2. Load a Game

That option accesses the savegame.txt file, which is used to save all the games you played. Pick a game number and it will load the sequence of moves. With enter you step through the next move. At any time you can resume playing with pressing 's'

3. Enable stats for nerds

Hello nerd! That enables monitoring the time (or clock ticks) needed for execution of the used algorithms.

Thank you for you time!

About

Connect 4 command-line game | Algorithms and Datastuctures practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages