Key to MidTerm Exam
Cpsc 873
1.
#1 low
#2 high
#3 high
#4 very high
#5 medium
#6 medium
#7 medium
Player
HumanPlayer
5.1 Syntax – UML Statechart notation
5.2 Description of Functionality – the methods of Player and Human Player handle moves sent from the GameBoard and Game, notifications of having won/lost or tied the game, and interacting with the ORB
5.3 Arguments – We need to be able to create Move objects.
5.4 Expected Output – Each transition is expected to set the state of the object to the values representative of the target state.
5.5 Exclusions – All of the functionality of Player and HumanPlayer will be tested to an all transitions level of coverage
5.6 Dependencies – We must be able to register at least a dummy Game object with the ORB in order to complete these tests/The HumanPlayer class is a subclass of Player therefore, there is a dependency between the state machines.
5.7 Test Case Success criteria – A test case will be judged successful if the state of the OUT after the test is the expected state
2.
<notYourTurn, setYourTurn(true), yourTurn>