8000 GitHub - tingtang2/AI_Lab2
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tingtang2/AI_Lab2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

# AI_Lab2

To run file: 
    python3 test.py


Structure of program:
    - A Board object keeps track of Piece insances. Information about a chess board and each piece are stored in
        Board and Piece objects respectively. For each Piece on in Board, the set of squares each piece can move to 
        is returned to the Board object so that it can generate the next possible boards. 

    - An isCheck() method determines whether a board resulted from a legal move since if it is a player to move,
      they cannot put their king in check

    - H-Minimax evalutes the generated boards using Alpha Beta Pruning with a max-depth of 4 to decide which 
      boards to explore wit

    - Running test.py outputs the best move for a given player

Program output:
    The optimal move for given player considering given board

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0