Skip to content
forked from ttsiodras/Score4

AI: Implementing Score4 (Connect four) in functional and imperative languages

License

Notifications You must be signed in to change notification settings

darklajid/Score4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple implementation of Score4 (also called Connect4).
The goal is to form horizontal, vertical or diagonal series of
4 of your chips (green). The computer tries to do the same, using
red chips.

The GNU-licensed code includes F#, OCaml, C# and C++ implementations, 
using both functional and imperative styles of coding.

Precompiled windows binary of the game is under:

    https://github.com/downloads/ttsiodras/Score4/Score4-win32.binary.zip

To fiddle with the sources:

1. Checkout

2. "make" :

    make play
        to play a graphics game of score4 (via PyGame)

    make playSimple
        to play a console game of score4

    make benchmark
        to benchmark the 4 languages (F#/C#/OCaml/C++)

3. The "make play" controls:

- Click with mouse to drop a green chip on a column
- ESCAPE to exit 
- SPACE to start a new game.

Article about this GNU-licensed code at:

http://users.softlab.ntua.gr/~ttsiod/score4.html

About

AI: Implementing Score4 (Connect four) in functional and imperative languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published