CSE-Courses / course-project-a5-ezpz

course-project-a5-ezpz created by GitHub Classroom
0 stars 0 forks source link

Add dead body reporting and emergency button pressing #41

Closed cheesynoz closed 4 years ago

cheesynoz commented 4 years ago

Crewmates and impostors can both report dead bodies which will enter the voting state. Pressing the emergency button will also enter the voting state, but players will only have one button press each.

Task test:

  1. Go to JUnits class in project
  2. Run and pass the following JUnit tests: reportBodyCausesVote, emergencyButtonCauseVote, onlyOneEmergencyButton

reportBodyCausesVote - Tests if reporting a body causes the game to enter the vote state

emergencyButtonCauseVote - Tests if pressing the emergency button causes the game to enter the vote state

onlyOneEmergencyButton - Tests that a player only has one emergency button press and will not be able to use it for the rest of the game.