havoc9792 / aichessgame Goto Github PK
View Code? Open in Web Editor NEWA command line AI chess game written in Java. This program has not implemented with any database of opening book and ending book.The evaluation function has taken few things into consideration : the positions of pieces,king safety,double Pawn and center control by knights and bishops.For the search engine that the AI uses,basically it is alpha-beta pruning on game tree.It checks 6 steps ahead in 3sec with avg branching factor at around 20.Moves that lead to a capture are preferable,sorted in Most Valuable Victim - Least Valuable Aggressor (MVV-LVA) principal.This program can be greatly improved by the use of books