Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

comejv/kube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Kube

Welcome to Kube, a Java clone of the classic K3 game!

About Kube

This project is a Java implementation of the original K3 game, built using Maven for dependency management and project build.

Features

  • Play in your terminal.
  • Play using a graphical user interface.
  • Build a mountain in the first phase.
  • Place your pieces on the central mountain in the second phase.
  • Undo and redo moves.
  • Play against the computer.
  • Resize your window to fit your screen.
  • Save and load games.
  • Play against other players online.

Installation

To run Kube on your local machine, make sure you have Java Development Kit (JDK) version 11 or later installed, along with Apache Maven.

  1. Clone this repository to your local machine:
git clone [email protected]:comejv/kube.git
  1. Navigate to the project directory:
cd kube
  1. Build the project using Maven:
mvn clean package
  1. Run the game:
java -jar target/kube-alpha.jar

Or double click on the jar file in the target directory.

How to Play

The game is played in 2 phases.

The aim of the game is to prevent your opponent from making any more moves in the second phase. In the first phase, you must build a mountain from the pieces you are given. In the second phase, you place your pieces on the central mountain, taking turns with your opponent. The only condition is that at least one of the two bases must be the same color as your piece. When you play a piece on two pieces of the same color, you receive a penalty. In this case, your opponent must take one of your “accessible” pieces and add it to his or her reserve of “extra” pieces. Note that extra pieces can be played just like “accessible” pieces. There are two jokers, natural and white. White pieces allow you to pass your turn without playing on the central mountain. Natural pieces have no terrain constraints (they can, however, provoke a penalty). Any piece can be played over them.

Acknowledgments

  • Inspired by the classic K3 game.
  • Built with Java and Maven.

Credits