% Script testP6
% Unit tests for classes in Project 6A (cave game)

% Set up figure
close all
axis equal off
hold on

% Create a small map and a Player
r = Room([1,1]);
m = Map();
m.addRoom(r)
p = Player(r, m);

% TEST: Player should start with 100 health points
% Coverage: Player()
fprintf('Initial player health: %d (expecting 100)\n', p.getHealth())

% TODO: Write and run the following tests as soon as you implement the
% required functionality:

% TEST: Player should not start out poisoned
% Coverage: Player(), Player.isPoisoned()
% TODO

% TEST: Player can be poisoned and report that status
% Coverage: Player.isPoisoned()
% TODO

% TEST: Player can be damaged by specified amount
% Coverage: Player.damage()
% TODO

% TEST: Player starts with two moves
% Coverage: Player(), Player.startTurn()
% TODO

% TEST: Visiting a TrapRoom damages player by specified amount
% Coverage: TrapRoom(), TrapRoom.visit(), Player.damage()
% TODO (will need a new Map)

% TEST: Visiting a PoisonRoom poisons player
% Coverage: PoisonRoom(), PoisonRoom.visit(), Player.isPoisoned()
% TODO (will need a new Map)
