Skip to content

MateuszM02/hexapawn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About Game

Hexapawn is a board game played on 3x3 chess-like board.
Top row contains 3 black pawns, middle is empty, and bottom has 3 white pawns.
Pawns move like in chess. The winner is a player who gets his pawn to last row first
or the player who made last move if the game ended in stalemate.

Getting Started

To run game you need to open terminal in this folder, then run following command:
java Main
You will see a window with menubar and buttons for selecting game mode.
If you have compile errors, try to recompile it using:
javac Main.java controller/*.java model/*.java model/playerModels/*.java view/*.java

Folder Structure

Entire project has following subfolders:

  • controller: files responsible for game mechanics like starting game with default board,
    telling players to make move, making moves and updating board after moves.
  • data: files where user settings and progress like full and improved decision trees are stored.
    If removed, they will be restored with default values next time you play.
  • model: files include Board model with its functions, 3 helping files - ClickModel, Paths, Settings
    and subfolder playerModels with human and bot models with movement functions,
  • view: contains files creating GUI of application - its window, main menu view and game view.
    It has also all button click actions like picking game mode or clicking board to make move.

About

hexapawn game written in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages