Skip to content

Bot that maximizes the chances of winning in ConnectX, a variant of Connect Four.

Notifications You must be signed in to change notification settings

lombichh/connectx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConnectX

ConnectX is a bot that maximizes the chances of winning in ConnectX, a variant of Connect Four featuring a table with variable dimensions, theoretically infinite.

connectx image

Compile

The code can be compiled by executing the "compile.bat" file.

Execute

Run in the command line:

CXGame application:

  • Human vs Computer. In the connectx/ directory run:

        java -cp ".." connectx.CXGame 6 7 4 connectx.LombEnis.LombEnis
  • Computer vs Computer. In the connectx/ directory run:

        java -cp ".." connectx.CXGame 6 7 4 connectx.LombEnis.LombEnis connectx.L1.L1

CXPlayerTester application:

  • Output score only:

        java -cp ".." connectx.CXPlayerTester 6 7 4 connectx.LombEnis.LombEnis connectx.L1.L1
  • Verbose output

        java -cp ".." connectx.CXPlayerTester 6 7 4 connectx.LombEnis.LombEnis connectx.L1.L1 -v
  • Verbose output and customized timeout (1 sec) and number of game repetitions (10 rounds)

        java -cp ".." connectx.CXPlayerTester 6 7 4 connectx.LombEnis.LombEnis connectx.L1.L1 -v -t 1 -r 10

About

Bot that maximizes the chances of winning in ConnectX, a variant of Connect Four.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published