This is a chess game project developed in Java. The game allows two players to compete against each other, following the standard rules of chess. It includes features for move validation, check, checkmate, and stalemate detection.
- Java 17 LTS: Programming language used for developing the game.
- Eclipse IDE: Integrated Development Environment used for coding and debugging.
- JDK 17 or higher
- Eclipse IDE or any other preferred Java IDE
-
Clone the repository:
git clone https://github.com/josivantarcio/project-chess-java.git cd project-chess-java
-
Import the project into Eclipse IDE:
- Open Eclipse IDE.
- Select
File > Import
. - Choose
Existing Maven Projects
and clickNext
. - Browse to the cloned repository directory and click
Finish
.
-
Run the project:
- In Eclipse, right-click on the project in the Project Explorer.
- Select
Run As > Java Application
.
The game will start and you can play chess using the console interface.
- The game prompts each player to make a move in turns.
- Enter moves using standard chess notation (e.g., e2 to e4).
- The game checks for valid moves, check, checkmate, and stalemate conditions.
- Players can quit the game by typing
exit
.
- Move Validation: Ensures moves are legal according to chess rules.
- Check Detection: Alerts when a player's king is in check.
- Checkmate and Stalemate Detection: Determines end of the game conditions.
- Console Interface: Simple text-based interface for move input and game updates.
This project is licensed under the terms of the MIT license. See the LICENSE file for details.
MIT License
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.
Contributions are welcome! Feel free to open issues and pull requests.