Skip to content

Simple checkers program written in Python. Model implementation of Arthur Samuel's famous program.

License

Notifications You must be signed in to change notification settings

almostimplemented/checkers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checkers AI: a look at Arthur Samuel's ideas

Usage

Download project. Navigate to directory. Do python game.py, and type in arthur when prompted for agent module.

(Note: to adjust how long the computer player "thinks" about its next move, you can vary the default depth parameter of the look ahead search. Go into arthur.py and change depth=x parameter of the function move_function.)

Files

checkers.py

 This file contains the definition of the CheckerBoard class. Its methods include new game
 initialization, ASCII printed output, and getting legal moves from a given state.

agent.py

 This file contains the implementation of the AI CheckersAgent class. All that is required
 of a CheckersAgent is that it have a function move_function() that takes in a game state and
 returns a legal move.

arthur.py

 This file contains the implementation of an agent that is inspired by Arthur Samuel's 
 historic machine learning checkers program.

game.py

 This file contains the harness for running an actual game of checkers.

Written with StackEdit.

About

Simple checkers program written in Python. Model implementation of Arthur Samuel's famous program.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages