Bill McQuain CS 2704 Project 1: RoboTank -------------------------------------------------------- Command: create 0 0 south Tank created. -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 0 0 Direction: west Odometer: 0 Ammo: 10 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 0 0 Direction: north Odometer: 0 Ammo: 10 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 0 0 Direction: east Odometer: 0 Ammo: 10 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 0 0 Direction: south Odometer: 0 Ammo: 10 -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: status Location: 0 0 Direction: east Odometer: 0 Ammo: 10 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 0 0 Direction: south Odometer: 0 Ammo: 10 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 0 0 Direction: west Odometer: 0 Ammo: 10 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 0 0 Direction: north Odometer: 0 Ammo: 10 -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: status Location: 0 25 Direction: west Odometer: 25 Ammo: 10 -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: status Location: -25 25 Direction: south Odometer: 50 Ammo: 10 -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: status Location: -25 0 Direction: east Odometer: 75 Ammo: 10 -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: status Location: 0 0 Direction: north Odometer: 100 Ammo: 10 -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 0 25 Direction: east Odometer: 125 Ammo: 10 -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 25 25 Direction: south Odometer: 150 Ammo: 10 -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 25 0 Direction: west Odometer: 175 Ammo: 10 -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: status Location: 0 0 Direction: north Odometer: 200 Ammo: 10 -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: status Location: 0 0 Direction: north Odometer: 200 Ammo: 7 -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: status Location: 0 0 Direction: north Odometer: 200 Ammo: 5 -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: status Location: 0 0 Direction: north Odometer: 200 Ammo: 0 -------------------------------------------------------- Command: fire Tank failed to fire. -------------------------------------------------------- Command: status Location: 0 0 Direction: north Odometer: 200 Ammo: 0 -------------------------------------------------------- Command: exit Exiting... --------------------------------------------------------