Skip to content

pikaju/chess-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChessBot

This is a basic chess program with an AI opponent which I wrote in Java as a school project when I was 16 years old.

How it works

The AI is capable of rating a given state of the game for each team, by considering aspects such as threatening and protecting, as well as which pieces the team and the opponent has. It brute-forces through all possible states, several moves ahead, and assumes each team tries to reach the highest score. Whichever move results in the highest predicted score for the AI's team is performed.

Controls

Clicking on a piece selects it and highlights all possible moves, which can be performed with another click. The AI opponent does its move directly afterwards.

Screenshots

Screenshot unable to load Screenshot unable to load

About

Chess game with an AI opponent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages