Skip to content

Extract Game logic to a separate class #9

@VctorAHernndez

Description

@VctorAHernndez

Currently, the whole game logic is handled by the Table class (which is in the proj2.ui subpackage). We should extract all of the game logic into a separate Game class and register Table as a "listener" to all of the changes that might occur that can cause an update in the UI, like for example:

  • When a player wins
  • When the player's turn is over
  • When a player lays cards on the table
  • When a player discards a card
  • When a player draws from the Deck
  • When a player draws from the Stack
  • When a player is selecting cards from his/her hand

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions