Skip to content

๐Ÿ˜ Chinese Chess game implemented in Java. Play against a friend or play against the computer!

License

Notifications You must be signed in to change notification settings

jwang541/Xiangqi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Xiangqi

Introduction

Xiangqi, also known as Chinese Chess, is a two-player strategy board game. The game represents a battle between two armies, with the objective of capturing the enemy's general. Xiangqi is played on a board nine lines wide and ten lines long, with a river running horizontally through the middle of the board and 2 palaces on either end vertically. Each player has sixteen pieces: include one general, two advisors, two elephants, two horses, two chariots, two cannons, and five soldiers.

Features

  • Implements all of the moves and rules of the game.
  • Two-player mode, as well as single-player against an AI opponent.
  • An AI opponent that uses the Minimax algorithm with alpha-beta pruning and iterative deepening.
  • A graphical user interface for playing the game.

Screenshot of a game against the AI opponent

Credits

About

๐Ÿ˜ Chinese Chess game implemented in Java. Play against a friend or play against the computer!

Topics

Resources

License

Stars

Watchers

Forks

Languages