Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.
/ connectx Public archive

Project in which an intelligent player of the Connect 4 game is developed; is implemented in java using the Alpha-Beta Pruning algorithm with a heuristic on the weight of the leaves of the game tree.

License

Notifications You must be signed in to change notification settings

aNdReA9111/connectx

Repository files navigation

  • Command-line compile. In the connectx/ directory run::

      javac -cp ".." *.java */*.java
    

CXGame application:

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

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

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

CXPlayerTester application:

  • Output score only:

    java -cp ".." connectx.CXPlayerTester 6 7 4 connectx.L0.L0 connectx.L1.L1

  • Verbose output

    java -cp ".." connectx.CXPlayerTester 6 7 4 connectx.L0.L0 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.L0.L0 connectx.L1.L1 -v -t 1 -r 10

About

Project in which an intelligent player of the Connect 4 game is developed; is implemented in java using the Alpha-Beta Pruning algorithm with a heuristic on the weight of the leaves of the game tree.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published