Skip to content

[3pts] Build console UI layer #18

@github-actions

Description

@github-actions

Description

Create console-based user interface for the game.

Depends on: Player, Dungeon, and CombatEngine issues

GameUI Class

Static Run() method as entry point

Main Menu Options

  • New Game
  • Load Game
  • Leaderboard
  • Quit

Room View

Display:

  • Room name and description
  • Available exits
  • Enemies present
  • Items on ground

Player Actions

  • Move (north, south, east, west)
  • Attack enemy
  • Pick up item
  • Use item
  • View stats/inventory

Combat Display

  • Show turn-by-turn results
  • Display damage dealt
  • Show health changes
  • Announce winner

Game Over Screen

  • Display final stats
  • Save score to leaderboard
  • Option to return to main menu

Requirements

  • No game logic in UI layer
  • Call game methods and display results only
  • Clear separation of concerns
  • User-friendly prompts and output

Acceptance Criteria

  • GameUI class with static Run() entry point
  • Main menu with all options implemented
  • New Game starts new player
  • Load Game retrieves saved game
  • Leaderboard displays top scores
  • Quit exits gracefully
  • Room view shows all required information
  • Player can move between rooms
  • Player can attack enemies
  • Player can pick up items
  • Player can use items
  • Player can view stats
  • Combat output shows turn details
  • Game over screen saves score
  • No game logic in UI - only display
  • User-friendly prompts and formatting

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions