Bill McQuain CS 2704 Project 1: RoboTank -------------------------------------------------------- Command: create 0 0 south Tank created. -------------------------------------------------------- Command: move 10 Tank moved 10 cm. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 20 Tank moved 20 cm. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: move 10 Tank moved 10 cm. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: status Location: -20 -20 Direction: south Odometer: 40 Ammo: 7 -------------------------------------------------------- Command: turn left 180 Tank turned 180 degrees to the left -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: turn right 270 Tank turned 270 degrees to the right -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: move 25 Tank moved 25 cm. -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: fire Tank fired. -------------------------------------------------------- Command: status Location: -45 -20 Direction: south Odometer: 65 Ammo: 3 -------------------------------------------------------- Command: turn right 180 Tank turned 180 degrees to the right -------------------------------------------------------- Command: move 80 Tank moved 80 cm. -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 50 Tank moved 50 cm. -------------------------------------------------------- Command: status Location: 5 60 Direction: east Odometer: 195 Ammo: 3 -------------------------------------------------------- Command: move 1000 Tank moved 1000 cm. -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: move 500 Tank moved 500 cm. -------------------------------------------------------- Command: status Location: 1005 560 Direction: north Odometer: 1695 Ammo: 3 -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: move 10 Tank moved 10 cm. -------------------------------------------------------- Command: status Location: 995 560 Direction: west Odometer: 1705 Ammo: 3 -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: move 20 Tank moved 20 cm. -------------------------------------------------------- Command: status Location: 995 540 Direction: south Odometer: 1725 Ammo: 3 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 20 Tank moved 20 cm. -------------------------------------------------------- Command: status Location: 975 540 Direction: west Odometer: 1745 Ammo: 3 -------------------------------------------------------- Command: turn left 90 Tank turned 90 degrees to the left -------------------------------------------------------- Command: move 10 Tank moved 10 cm. -------------------------------------------------------- Command: status Location: 975 530 Direction: south Odometer: 1755 Ammo: 3 -------------------------------------------------------- Command: move 50 Tank moved 50 cm. -------------------------------------------------------- Command: status Location: 975 480 Direction: south Odometer: 1805 Ammo: 3 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 75 Tank moved 75 cm. -------------------------------------------------------- Command: status Location: 900 480 Direction: west Odometer: 1880 Ammo: 3 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 100 Tank moved 100 cm. -------------------------------------------------------- Command: status Location: 900 580 Direction: north Odometer: 1980 Ammo: 3 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 125 Tank moved 125 cm. -------------------------------------------------------- Command: status Location: 1025 580 Direction: east Odometer: 2105 Ammo: 3 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 150 Tank moved 150 cm. -------------------------------------------------------- Command: status Location: 1025 430 Direction: south Odometer: 2255 Ammo: 3 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 175 Tank moved 175 cm. -------------------------------------------------------- Command: status Location: 850 430 Direction: west Odometer: 2430 Ammo: 3 -------------------------------------------------------- Command: turn right 90 Tank turned 90 degrees to the right -------------------------------------------------------- Command: move 200 Tank moved 200 cm. -------------------------------------------------------- Command: status Location: 850 630 Direction: north Odometer: 2630 Ammo: 3 -------------------------------------------------------- Command: exit Exiting... --------------------------------------------------------