Skip to content

Just Another Python Chess is an implementation of the chess game in Python for playing with another player.

Notifications You must be signed in to change notification settings

ulitol97/ja-pychess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ja-pychess

Just Another Python Chess is an implementation of a terminal chess game in Python for playing against another player designed as part of the Object Oriented Programming subject.

Installation

To run the game simply install python and run main.py

Gameplay

Once the game begins, white side goes first. Yellow tiles are random traps that demote pieces to pawns. The state of the board is represented in the terminal as follows:
ja-chess

Type help anytime to see the available commands:

  • help: show game help
  • move [origin] [destination]: Move the chess piece located in origin to the position in destination as long as the selected piece belongs to the corresponding player and the defined move is legal. Example: move a2 a3
  • undo: undo last move
  • redo: redo
  • status: show whose turn it is, the pieces left on each side and the game board
  • exec [path/to/file]: the game interpreter will execute line by line the commands contained in an external file, as long as they are valid
  • reset: resets the game
  • quit: closes the program

About

Just Another Python Chess is an implementation of the chess game in Python for playing with another player.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages