Skip to content

A simple chess game played into a terminal window. This repo serves for study material about Java OOP.

License

Notifications You must be signed in to change notification settings

jonasGN/java_terminal_chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java terminal chess

The Java terminal chess, is a project which serves of study material for Java OOP.

About the game

Chess is a two-player strategy board game played on a checkered board with 64 squares arranged in an 8×8 square grid. Played by millions of people worldwide, chess is believed to be derived from the Indian game chaturanga sometime before the 7th century. Chaturanga is also the likely ancestor of the East Asian strategy games xiangqi (Chinese chess), janggi (Korean chess), and shogi (Japanese chess). Chess reached Europe via Persia and Arabia by the 9th century, due to the Umayyad conquest of Hispania. The queen and bishop assumed their current powers in what is now Spain in the late 15th century, and the modern rules were standardized in the 19th century.

To see more about the game, click here.

How to run

To run this app, clone this rep into your machine:

$ git clone https://github.com/jonasGN/java_terminal_chess.git

Open the bin folder and run:

$ java application/App

Completed topics

  • First class: Position
  • Starting to implement Board and Piece
  • Chess layer and printint the board
  • Placing pieces on the board
  • BoardException and defensive programming
  • ChessException and ChessPosition
  • Little improvement in the board printing
  • Moving pieces
  • Handling exceptions and clearing screen
  • Possible moves of a piece
  • Implementing possible moves of Rook
  • Printing possible moves
  • Implementing possible moves of King
  • Switching player each turn
  • Handling captured pieces
  • Check logic
  • Checkmate logic
  • Piece move count
  • Pawn
  • Bishop
  • Knight
  • Queen
  • Special move - Castling
  • Special move - En Passant
  • Special move - Promotion

Special thanks

To Nelio Alves. This amazing master who teached me so much in this project, about how to implement the OOP logic into my projects.

About

A simple chess game played into a terminal window. This repo serves for study material about Java OOP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages