Skip to content

A program for playing arbitrary two-player adversarial games using the alpha-beta pruning algorithm.

Notifications You must be signed in to change notification settings

elliott-lucas/alphabeta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpha-Beta Pruning Program

An program for playing arbitrary two-player adversarial games using the Alpha-Beta Pruning algorithm.

Various examples of games are included (Hex, Tic Tac Toe, 21, etc.).

Defining a Game

Games are created as a subclass of the Game class and must define its abstract functions:

  • getPossibleMoves - How to get all current possible moves for the current player.
  • getEvaluation - How to get a numerical evaluation of the current game state.
  • playMove - How to play a given move.

Additionally, definitions can be added for getInput and drawGame to allow for human players and graphics.

About

A program for playing arbitrary two-player adversarial games using the alpha-beta pruning algorithm.

Topics

Resources

Stars

Watchers

Forks

Languages