Author: Harry He
Chess.AI.Demo.mp4
A video demonstration of how the game is played. Harry (628) vs Harry's AI (???)
The application is a game where the user is able to play chess against another player, or a computer. All of the technologies used in the game are apart of the Java Standard Library, and there are no external libraries that were used in the creation of the game. In the game some of the features of the Java Standard Library used were graphics, threading, and text file editing.
- Alpha-Beta pruning
- Quiescence search
- Zobrist hashing
- Transposition tables
-
Create or open the folder in which you wish to download and run the game.
-
Open the command line at that folder and download the game using the command.
git clone https://github.com/he-is-harry/ChessAI.git -
Move all java files into the src folder above where they currently are, so instead of src/main/java/src, move it into the parent src folder.
-
At the src folder run the following command to compile all of the Java files.
javac $(find . -name "\*.java") -
Move up to the parent folder, which should be named ChessAI by default by running the following command.
cd .. -
Run the game by running the command.
java src/Game
The application will accept mouse input. By clicking on a piece, possible moves will be highlighted. Then, selecting one of those moves will move the piece to that position. If no highlighted squares appear, then the piece cannot move.
MIT License
Copyright (c) 2022 Harry He
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.