Test Case 9

Requirement Traceability:

Requirements 32 and 33

Purpose:

  1. Verify the multiplayer Multiplayer Undo functionality.

Procedure:

For the following test case, words in italic refer to the hosting computer and underlined words refer to the client computer.  Words in regular type refer to both computers.

Follow the Test Data procedure in Test Case 4 except for the last step (exiting the game) and then follow the steps below:
 

Test Data:
 

Action

Input

Expected Output

Press the UP directional button

 

Player1’s robot moves up one space.  The Moves field now reads 5.

 

Player1’s robot moves up one space.

Press the RIGHT button seven times

 

Player1’s robot moves to the right seven spaces.  The Moves field now reads 12.

 

Player1’s robot moves right seven spaces.

Press the Undo button twice

 

Player1’s robot moves to the left two spaces.  It is directly above the crate.  The Moves field now reads 10.

 

Player1’s robot moves left two spaces.

Press the DOWN directional button once

 

Player1’s robot and the crate move down one space.  The Moves field now reads 11.  The Pushes field now reads 1.

 

Player1’s robot and the crate move down one space.

Press the Undo button

 

Player1’s robot and the crate move up one space.  The Move field now reads 10.  The Pushes field now reads 0.

 

Player1’s robot and the crate move up one space.

Press the UP directional button four times

 

Player2’s robot moves up four squares and the Moves field now reads 8.

 

Player2’s robot moves up four spaces

Press the Undo button

 

Player2’s robot moves down one space.  The Moves field now reads 7.

 

Player2’s robot moves down one space.

Press the RIGHT directional button six times

 

Player2’s robot moves six spaces to the right and pushes the box two spaces to the right.  The Moves field now reads 13.  The Pushes field now reads 2.

 

Player2’s robot moves six spaces to the right and pushes the box two spaces to the right.

Press the Undo button once

 

Player2’s robot and the crate move one space to the left.  The Moves field now reads 12.  The Pushes field now reads 1.

 

Player2’s robot and the crate move one space to the left.

Click Game | Exit

 

Click Game | Exit

 

Sokoban program terminates

 

Sokoban program terminates