Skip to content

earnesdm/Python-Final

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Checkers AI

Contains a checkers game I made. Checkers3.0.py will let you play against an AI based on the Minimax algorithm. The agent searches 6 moves ahead. Boards are scored by counting pieces with standard pieces assigned a value of +1, and kings are assigned a value of +3; enemy pieces have the corresponding negative values.

I might add Alpha-Beta Pruning to this soonish.

You need Pygame 2.5.2 and Python 3.8 to run this.

Just run the file Checkers3.0.py to play. Move a piece by clicking on it with your mouse and then selecting the square to jump to. Remember that if it is possible for you to jump the opponent's piece, then you have to jump, i.e., sometimes moves are forced.

Consult a rule book for more infomation on how to play: https://www.hasbro.com/common/instruct/Checkers.PDF

About

Contains a checkers agent that I made based on the Minimax algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages