Add player class with tests
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.
Checklist
-
Javadoc -
Relevant tests have been created -
Build tool test passed -
Class version is updated where relevant