Skip to content

A Java Swing application emulating the classic Space Trader game

Notifications You must be signed in to change notification settings

farisdurrani/SpaceTraderGame

Repository files navigation

Space Trader Game

A Java Swing application emulating the classic Space Trader game using Java Swing. A single player is able to buy and sell items, travel to planets, and interact with NPCs. The end culminates in the player dying, losing fuel and money, or immensed enough wealth to buy the whole Universe.

CS 2340 - Fall 2019 - Team 78

Authors: Brock Smith, Chris Kim, and Faris Durrani.
Implemented: Aug - Dec 2019
Original repo: https://github.com/brockwsmith225/2340Project
Current repo: https://github.com/farisdurrani/SpaceTraderGame

OOD Principles

This game is built with the OOD principles SOLID and GRASP in mind in line with best practices in software development for readability, maintainability, and flexibility. A more thorough explanation with examples included can be found in Milestone 7 OOD Principles.pdf.

How to Run

  1. Install Java 14+
  2. Navigate to out\production\SpaceTraderGame
  3. Run the command java spacetrader.ui.SpaceTrader

Alternatively, run on IntelliJ with the main class being src\spacetrader\ui\SpaceTrader.java

Screenshots

  1. Upon running the program, the below welcome screen emerges:
  2. After setting up the game, this is the main screen of the game where players may choose to buy/sell at the Market, look at the Inventory of current items, and Travel to other planets

The Goal

The main goal of this game is to accrue enough money to buy the Universe item costing $1000 at a certain planet, while not losing all money from excessive spending, dying from battles, or losing all fuel.

About

A Java Swing application emulating the classic Space Trader game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages