Linux3[1]% gcc -Wall -ansi proj5.c pirate.c Linux3[2]% a.out pirate1.dat p1_seed15.out 15 +----------------------------------------------------+ | Ahoy matey...welcome to Pirates of the Chesapeake | +----------------------------------------------------+ /| |\ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / Napster| VS. |UMBC \ / | | \ -------------+ +------------- || || ====================== ====================== \ Captain / \ Captain / \ Shawn Fanning / \ Dawn Block / \ 220 Sailors / \ 266 Sailors / \ / \ / ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ Captain Shawn Fanning lost the battle, 1 ship(s), and the following cargo: - MP3's Bye, matey! Linux3[3]% more p1_seed15.out -- Before the battle -- Fleet One: Captain Shawn Fanning of Napster's fleet has a total of 220 men. Here is a complete listing of the fleet: | CARGO: MP3's Ship 1:| WEIGHT: 212 tons |NUM MEN: 50 | CARGO: Rum Ship 2:| WEIGHT: 229 tons |NUM MEN: 80 | CARGO: Peg Legs Ship 3:| WEIGHT: 242 tons |NUM MEN: 90 Fleet Two: Captain Dawn Block of UMBC's fleet has a total of 266 men. Here is a complete listing of the fleet: | CARGO: Striped Shirts Ship 1:| WEIGHT: 435 tons |NUM MEN: 29 | CARGO: Cannonballs Ship 2:| WEIGHT: 1024 tons |NUM MEN: 15 | CARGO: Diamonds, Rubies, and Gold Ship 3:| WEIGHT: 623 tons |NUM MEN: 100 | CARGO: UMBC CS 201 TA's Ship 4:| WEIGHT: 250 tons |NUM MEN: 10 | CARGO: Limes Ship 5:| WEIGHT: 723 tons |NUM MEN: 29 | CARGO: Parrots Ship 6:| WEIGHT: 312 tons |NUM MEN: 83 -- After the battle -- Fleet One: Captain Shawn Fanning of Napster's fleet has a total of 170 men. Here is a complete listing of the fleet: | CARGO: Rum Ship 1:| WEIGHT: 229 tons |NUM MEN: 80 | CARGO: Peg Legs Ship 2:| WEIGHT: 242 tons |NUM MEN: 90 Fleet Two: Captain Dawn Block of UMBC's fleet has a total of 316 men. Here is a complete listing of the fleet: | CARGO: Striped Shirts Ship 1:| WEIGHT: 435 tons |NUM MEN: 29 | CARGO: Cannonballs Ship 2:| WEIGHT: 1024 tons |NUM MEN: 15 | CARGO: Diamonds, Rubies, and Gold Ship 3:| WEIGHT: 623 tons |NUM MEN: 100 | CARGO: UMBC CS 201 TA's Ship 4:| WEIGHT: 250 tons |NUM MEN: 10 | CARGO: Limes Ship 5:| WEIGHT: 723 tons |NUM MEN: 29 | CARGO: Parrots Ship 6:| WEIGHT: 312 tons |NUM MEN: 83 | CARGO: MP3's Ship 7:| WEIGHT: 212 tons |NUM MEN: 50 Linux3[4]% a.out pirate1.dat p1_seed35.out 35 +----------------------------------------------------+ | Ahoy matey...welcome to Pirates of the Chesapeake | +----------------------------------------------------+ /| |\ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / Napster| VS. |UMBC \ / | | \ -------------+ +------------- || || ====================== ====================== \ Captain / \ Captain / \ Shawn Fanning / \ Dawn Block / \ 220 Sailors / \ 266 Sailors / \ / \ / ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ Captain Shawn Fanning lost the battle, 0 ship(s), and no cargo! Lucky Captain Shawn Fanning. Sail home to Napster, Cap'n. Bye, matey! Linux3[5]% more p1_seed35.out -- Before the battle -- Fleet One: Captain Shawn Fanning of Napster's fleet has a total of 220 men. Here is a complete listing of the fleet: | CARGO: MP3's Ship 1:| WEIGHT: 212 tons |NUM MEN: 50 | CARGO: Rum Ship 2:| WEIGHT: 229 tons |NUM MEN: 80 | CARGO: Peg Legs Ship 3:| WEIGHT: 242 tons |NUM MEN: 90 Fleet Two: Captain Dawn Block of UMBC's fleet has a total of 266 men. Here is a complete listing of the fleet: | CARGO: Striped Shirts Ship 1:| WEIGHT: 435 tons |NUM MEN: 29 | CARGO: Cannonballs Ship 2:| WEIGHT: 1024 tons |NUM MEN: 15 | CARGO: Diamonds, Rubies, and Gold Ship 3:| WEIGHT: 623 tons |NUM MEN: 100 | CARGO: UMBC CS 201 TA's Ship 4:| WEIGHT: 250 tons |NUM MEN: 10 | CARGO: Limes Ship 5:| WEIGHT: 723 tons |NUM MEN: 29 | CARGO: Parrots Ship 6:| WEIGHT: 312 tons |NUM MEN: 83 -- After the battle -- Fleet One: Captain Shawn Fanning of Napster's fleet has a total of 220 men. Here is a complete listing of the fleet: | CARGO: MP3's Ship 1:| WEIGHT: 212 tons |NUM MEN: 50 | CARGO: Rum Ship 2:| WEIGHT: 229 tons |NUM MEN: 80 | CARGO: Peg Legs Ship 3:| WEIGHT: 242 tons |NUM MEN: 90 Fleet Two: Captain Dawn Block of UMBC's fleet has a total of 266 men. Here is a complete listing of the fleet: | CARGO: Striped Shirts Ship 1:| WEIGHT: 435 tons |NUM MEN: 29 | CARGO: Cannonballs Ship 2:| WEIGHT: 1024 tons |NUM MEN: 15 | CARGO: Diamonds, Rubies, and Gold Ship 3:| WEIGHT: 623 tons |NUM MEN: 100 | CARGO: UMBC CS 201 TA's Ship 4:| WEIGHT: 250 tons |NUM MEN: 10 | CARGO: Limes Ship 5:| WEIGHT: 723 tons |NUM MEN: 29 | CARGO: Parrots Ship 6:| WEIGHT: 312 tons |NUM MEN: 83 Linux3[6]% a.out pirate2.dat p2_seed10.out 10 +----------------------------------------------------+ | Ahoy matey...welcome to Pirates of the Chesapeake | +----------------------------------------------------+ /| |\ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / Idaho| VS. |UMBC \ / | | \ -------------+ +------------- || || ====================== ====================== \ Captain / \ Captain / \ Napoleon / \ Dawn Block / \ 112 Sailors / \ 125 Sailors / \ / \ / ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ Captain Napoleon lost the battle, 3 ship(s), and the following cargo: - Chapstick - Eye Patches - Tater Tots Captain Napoleon had to walk the plank since there was no one to defend 'em! Bye, matey! Linux3[7]% more p2_seed10.out -- Before the battle -- Fleet One: Captain Napoleon of Idaho's fleet has a total of 112 men. Here is a complete listing of the fleet: | CARGO: Chapstick Ship 1:| WEIGHT: 23 tons |NUM MEN: 21 | CARGO: Eye Patches Ship 2:| WEIGHT: 921 tons |NUM MEN: 72 | CARGO: Tater Tots Ship 3:| WEIGHT: 411 tons |NUM MEN: 19 Fleet Two: Captain Dawn Block of UMBC's fleet has a total of 125 men. Here is a complete listing of the fleet: | CARGO: Rum Ship 1:| WEIGHT: 79 tons |NUM MEN: 16 | CARGO: Country CD's Ship 2:| WEIGHT: 142 tons |NUM MEN: 72 | CARGO: Peg Legs Ship 3:| WEIGHT: 111 tons |NUM MEN: 37 -- After the battle -- Fleet One: Captain Napoleon of Idaho had to walk the plank! Fleet Two: Captain Dawn Block of UMBC's fleet has a total of 237 men. Here is a complete listing of the fleet: | CARGO: Rum Ship 1:| WEIGHT: 79 tons |NUM MEN: 16 | CARGO: Country CD's Ship 2:| WEIGHT: 142 tons |NUM MEN: 72 | CARGO: Peg Legs Ship 3:| WEIGHT: 111 tons |NUM MEN: 37 | CARGO: Chapstick Ship 4:| WEIGHT: 23 tons |NUM MEN: 21 | CARGO: Eye Patches Ship 5:| WEIGHT: 921 tons |NUM MEN: 72 | CARGO: Tater Tots Ship 6:| WEIGHT: 411 tons |NUM MEN: 19 Linux3[8]% a.out pirate2.dat p2_seed0.out +----------------------------------------------------+ | Ahoy matey...welcome to Pirates of the Chesapeake | +----------------------------------------------------+ /| |\ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / | | \ / Idaho| VS. |UMBC \ / | | \ -------------+ +------------- || || ====================== ====================== \ Captain / \ Captain / \ Napoleon / \ Dawn Block / \ 112 Sailors / \ 125 Sailors / \ / \ / ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ Captain Napoleon lost the battle, 2 ship(s), and the following cargo: - Chapstick - Eye Patches Bye, matey! Linux3[9]% more p2_seed0.out -- Before the battle -- Fleet One: Captain Napoleon of Idaho's fleet has a total of 112 men. Here is a complete listing of the fleet: | CARGO: Chapstick Ship 1:| WEIGHT: 23 tons |NUM MEN: 21 | CARGO: Eye Patches Ship 2:| WEIGHT: 921 tons |NUM MEN: 72 | CARGO: Tater Tots Ship 3:| WEIGHT: 411 tons |NUM MEN: 19 Fleet Two: Captain Dawn Block of UMBC's fleet has a total of 125 men. Here is a complete listing of the fleet: | CARGO: Rum Ship 1:| WEIGHT: 79 tons |NUM MEN: 16 | CARGO: Country CD's Ship 2:| WEIGHT: 142 tons |NUM MEN: 72 | CARGO: Peg Legs Ship 3:| WEIGHT: 111 tons |NUM MEN: 37 -- After the battle -- Fleet One: Captain Napoleon of Idaho's fleet has a total of 19 men. Here is a complete listing of the fleet: | CARGO: Tater Tots Ship 1:| WEIGHT: 411 tons |NUM MEN: 19 Fleet Two: Captain Dawn Block of UMBC's fleet has a total of 218 men. Here is a complete listing of the fleet: | CARGO: Rum Ship 1:| WEIGHT: 79 tons |NUM MEN: 16 | CARGO: Country CD's Ship 2:| WEIGHT: 142 tons |NUM MEN: 72 | CARGO: Peg Legs Ship 3:| WEIGHT: 111 tons |NUM MEN: 37 | CARGO: Chapstick Ship 4:| WEIGHT: 23 tons |NUM MEN: 21 | CARGO: Eye Patches Ship 5:| WEIGHT: 921 tons |NUM MEN: 72 Linux3[10]%