Skip to content

Add player class with tests

Carl Gützkow requested to merge add-player-class into main

closes: #4 (closed)

What are the key features of this change

Creates a class Player with a name, health, score, gold, and inventory. Health, score, and gold are integers which can not be negative. Health can be zero, but can not start at zero. Inventory is a list of strings which can be retrieved and modfied.


  • Javadoc
  • Relevant tests have been created
  • Build tool test passed
  • Class version is updated where relevant

Merge request reports