Files
basic-computer-games/84_Super_Star_Trek/java

Original source downloaded from Vintage Basic

Conversion to Oracle Java by Taciano Dreckmann Perez.

Overview of Java classes:

  • SuperStarTrekInstructions: displays game instructions
  • SuperStarTrekGame: main game class
  • GalaxyMap: map of the galaxy divided in quadrants and sectors, containing stars, bases, klingons, and the Enterprise
  • Enterprise: the starship Enterprise
  • GameCallback: interface allowing other classes to interact with the game class without circular dependencies
  • Util: utility methods

This video describes the approach and the different steps followed to translate the game.