Bill McQuain CS 2704 Project 1: RoboTank -------------------------------------------------------- Command: create 0 0 east Tank created. -------------------------------------------------------- Command: status Location: 0 0 Direction: east Odometer: 0 Ammo: 10 -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: status Location: 0 0 Direction: south Odometer: 100 Ammo: 10 -------------------------------------------------------- Command: move 30 Tank moved 30 cm. -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 30 Tank moved 30 cm. -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 30 Tank moved 30 cm. -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 30 Tank moved 30 cm. -------------------------------------------------------- Command: status Location: 0 0 Direction: east Odometer: 220 Ammo: 10 -------------------------------------------------------- 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: east Odometer: 220 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: east Odometer: 220 Ammo: 0 -------------------------------------------------------- Command: fire Tank failed to fire. -------------------------------------------------------- Command: status Location: 0 0 Direction: east Odometer: 220 Ammo: 0 -------------------------------------------------------- Command: move 100 Tank moved 100 cm. -------------------------------------------------------- Command: status Location: 100 0 Direction: east Odometer: 320 Ammo: 0 -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: status Location: 100 0 Direction: north Odometer: 320 Ammo: 0 -------------------------------------------------------- Command: turn right 180 Tank turned 180 degrees to the right -------------------------------------------------------- Command: status Location: 100 0 Direction: south Odometer: 320 Ammo: 0 -------------------------------------------------------- Command: turn left 270 Tank turned 270 degrees to the left -------------------------------------------------------- Command: move 100 Tank moved 100 cm. -------------------------------------------------------- Command: status Location: 0 0 Direction: west Odometer: 420 Ammo: 0 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: status Location: 0 0 Direction: west Odometer: 420 Ammo: 0 -------------------------------------------------------- Command: move 300 Tank moved 300 cm. -------------------------------------------------------- Command: turn left 180 Tank turned 180 degrees to the left -------------------------------------------------------- Command: move 300 Tank moved 300 cm. -------------------------------------------------------- Command: status Location: 0 0 Direction: east Odometer: 1020 Ammo: 0 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: turn right 180 Tank turned 180 degrees to the right -------------------------------------------------------- Command: turn right 270 Tank turned 270 degrees to the right -------------------------------------------------------- Command: status Location: 0 0 Direction: west Odometer: 1020 Ammo: 0 -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: turn left 180 Tank turned 180 degrees to the left -------------------------------------------------------- Command: turn left 270 Tank turned 270 degrees to the left -------------------------------------------------------- Command: status Location: 0 0 Direction: east Odometer: 1020 Ammo: 0 -------------------------------------------------------- Command: exit Exiting... --------------------------------------------------------