Skip to content

A two-player game that uses animals with unique abilities and rank as pieces

License

Notifications You must be signed in to change notification settings

ubergonmx/animal-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animal Chess

Animal Chess is a two-player game that uses animals with rank (and some with special ability) as pieces. This project was developed as part of the requirements for the Introductory Programming (CCPROG3) class.

Preview

Home

preview1

In-game

preview2

The Game

Before the start of a game, each player picks one animal piece. The one with the higher-ranked animal is the first player. The players will choose a color for their animal pieces (e.g. Player 1 chooses red, Player 2 chooses blue). The player takes turn in moving their animal pieces on the board. Game ends when a player successfully moves any of his animal pieces into his opponent's animal den.

Generally,

  • pieces can move one space horizontally or vertically; and
  • pieces may land on and capture an opponent's piece that has equal or lower rank.

However the following exceptions apply:

Movement

  • The mouse is the only animal that is allowed to move on the river .
  • Both the lion and the tiger can jump from the land before the river to the land after the river, horizontally or vertically, as long as there is no mouse along the way .
  • A player may not move his own piece to his own animal den

Capturing an opponent's piece

  • A player may capture an opponent's piece with a higher rank that is on one of his traps .
  • An elephant may not capture a mouse while the mouse can capture an elephant.
  • A mouse on the river may not capture an elephant or another mouse on land.
  • A mouse on the river may capture another mouse on the river .
  • A mouse on land may not capture a mouse on the river .

Features

  • Implements the Model-View-Controller (MVC) design pattern
  • Allows players to move pieces on the board according to the rules of the game
  • Utilizes both JavaFX (Home) and Java Swing (In-game) UI toolkit
  • In-game sound effects for all actions

How to Play

  1. Run AnimalChess.exe or AnimalChess.jar.
  2. To start the game, go to Play (and read the instructions) > press Ok.
  3. Player turns are determined by the chosen animal rank when clicking the provided buttons. The player with the highest rank animal goes first.
  4. Follow the rules of the game and try to capture your opponent's animal den to win.

Team

Disclaimer

Please note that the sound effects used in this project are for demonstration purposes only. We do not own or claim any rights to the sound effects used in the game. All sound effects are sourced from third-party libraries or repositories and are used in accordance with their respective licenses.

License

This project is licensed under the BSD-3 License - see the LICENSE file for details.

About

A two-player game that uses animals with unique abilities and rank as pieces

Topics

Resources

License

Stars

Watchers

Forks

Languages