Skip to content

The aim of this hands-on practical project is to reinforce knowledge of Object-Oriented Programming (OOP) in Java by implementing a chess game.

License

Notifications You must be signed in to change notification settings

samanthamaiaduarte/chess_java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess Game Project

Java MIT License

Challenge

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.

Proposal

To create a complete functional chess game, that can be played at a colorful terminal (such as git bash), using coordinates.

Diagram

Installation

  1. Clone the repository:
git clone https://github.com/samanthamaiaduarte/chess_java.git
  1. Open your terminal in the chess_java directory:

  2. Create bin directory:

mkdir bin
  1. Compile the application:
javac -d ./bin -sourcepath ./src ./src/application/Program.java
  1. Run the application:
java -cp ./bin/ application/Program

For a better experience, use a colorful terminal, such as Git bash.

Usage/Examples

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.

Contributing

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.

About

The aim of this hands-on practical project is to reinforce knowledge of Object-Oriented Programming (OOP) in Java by implementing a chess game.

Topics

Resources

License

Stars

Watchers

Forks

Languages