Skip to content

Textual turn-based combat game written in Java for a university assignment.

Notifications You must be signed in to change notification settings

rohankhayech/CombatGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Textual Turn-Based Combat Game

Description

This project is a textual, turn-based combat game written for a university assignment.

The game involves fighting a selection of enemies using a variety of attack options, earning gold and trading weapons, armour and potions with the shop. The game is designed to be modular and expandable, allowing for new items and enemies to be easily added to the game.

The source code demonstrates use of common software design patterns such as the observer pattern used in event-driven programming and the decorator pattern used to describe in-game item attributes.

It also features a text-based heirarchal menu system, utilising the composite pattern allowing for many levels of sub-menus. This system allows for population of menu options at runtime and supports rich return of selected objects.

How to Run

Run the following command in a bash or Powershell terminal:

> ./gradlew run

About

Textual turn-based combat game written in Java for a university assignment.

Topics

Resources

Stars

Watchers

Forks

Languages