Skip to content

raquelmrodrigues/java-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Chess

This project was made apllying my skills in Java and OOP.

Based in this UML diagram:

UML_jc

How to play

At first, the white player needs to choose the piece he wants to move, informing to the console the correspondend letter and number. So the terminal will show the possible moves for the chosen piece. The player must inform the place (a valid place!) where he wants to move the chosen piece. After the white move, the turn will change for the black pieces.

2 3

Pieces Capture and Invalid Positions

If the player chooses a position where he does not have a piece, or the position of an opponent's piece, the terminal will alert about it and ask for a new position:

4

If there is a opponent piece in the chosen position, it will be captured.

5

Pawn promotion

The pawn piece that reaches the eighth row can be replaced by a bishop, knight, rook, or queen of the same color. The console will ask the player which piece he wants to transform into:

6

About

Jogo de xadrez elaborado em Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages