The aim of this hands-on practical project is to reinforce knowledge of Object-Oriented Programming (OOP) in Java by implementing a chess game.
Created during Udemy Java and OOP course.
To create a complete functional chess game, that can be played at a colorful terminal (such as git bash), using coordinates.
- Clone the repository:
git clone https://github.com/samanthamaiaduarte/chess_java.git-
Open your terminal in the
chess_javadirectory: -
Create
bindirectory:
mkdir bin- Compile the application:
javac -d ./bin -sourcepath ./src ./src/application/Program.java- Run the application:
java -cp ./bin/ application/ProgramFor a better experience, use a colorful terminal, such as Git bash.
For you to play a chess match, after execute the application, just inform the position of the piece you want to move and the final position of the selected piece, using coordinates column + line.
Ex.:
Source: c2
Target: c4
Possible moves will be showed at the board.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request to the repository.
When contributing to this project, please follow the existing code style, commit conventions, and submit your changes in a separate branch.
