public int americanGunShots() { int bulletNumber = 100; int batteryLevel = 100; Console.WriteLine("Enter how many bullets you want to shoot 0 - 100: "); bulletNumber = Convert.ToInt32(Console.ReadLine()); if (bulletNumber == 0) { Console.WriteLine("I'm all out of bullets and battery"); Console.WriteLine("My battery level is " + batteryLevel); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("1. Repair Fleet"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 1) { RobotRepairFleet newRepairFleet = new RobotRepairFleet(); newRepairFleet.repairFleetNames("Samsung", 100); newRepairFleet.AmmoReserve(); Console.WriteLine("Would you like to shoot an enemy robot? "); Console.WriteLine("1. YES!"); Console.WriteLine("--------------"); int decision; decision = Convert.ToInt32(Console.ReadLine()); if (decision == 1) { int WallieBatteryLevelShot; WallieBatteryLevelShot = 100 - 99; Console.WriteLine("Shooting Japanese Robot......"); Console.WriteLine("Wallie: Aghhhhhhh....You shot me!!!!!!"); Console.WriteLine("My battery level is at " + WallieBatteryLevelShot); Console.WriteLine("--------------------"); Console.WriteLine("Please exit application!!!!!"); } } else if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); Console.WriteLine("You have no ammo to shoot an enemy robot"); } return(batteryLevel); } else if (bulletNumber < 100) { batteryLevel -= bulletNumber; Console.WriteLine("BANG! BANG! BANG!"); Console.WriteLine("My battery level is " + batteryLevel); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("1. Repair Fleet"); Console.WriteLine("2. Recharge Fleet"); int choice = Convert.ToInt32(Console.ReadLine()); if (choice == 1) { RobotRepairFleet newRepairFleet = new RobotRepairFleet(); newRepairFleet.repairFleetNames("Samsung", 100); newRepairFleet.AmmoReserve(); Console.WriteLine("Would you like to shoot an enemy robot? "); Console.WriteLine("1. YES!"); Console.WriteLine("--------------"); int decision; decision = Convert.ToInt32(Console.ReadLine()); if (decision == 1) { int WallieBatteryLevelShot; WallieBatteryLevelShot = 100 - 99; Console.WriteLine("Shooting Japanese Robot......"); Console.WriteLine("Wallie: Aghhhhhhh....You shot me!!!!!!"); Console.WriteLine("My battery level is at " + WallieBatteryLevelShot); Console.WriteLine("--------------------"); Console.WriteLine("Please exit application!!!!!"); } } else if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); Console.WriteLine("Would you like to shoot an enemy robot? "); Console.WriteLine("1. YES!"); Console.WriteLine("--------------"); int decision; decision = Convert.ToInt32(Console.ReadLine()); if (decision == 1) { int WallieBatteryLevelShot; WallieBatteryLevelShot = 100 - 99; Console.WriteLine("Shooting Japanese Robot......"); Console.WriteLine("Wallie: Aghhhhhhh....You shot me!!!!!!"); Console.WriteLine("My battery level is at " + WallieBatteryLevelShot); Console.WriteLine("--------------------"); Console.WriteLine("Please exit application!!!!!"); } } return(batteryLevel); } else if (bulletNumber == 100) { Console.WriteLine("Saving ammo huh?"); Console.WriteLine("My battery level is " + batteryLevel); Console.WriteLine("Would you like to shoot an enemy robot? "); Console.WriteLine("1. YES!"); Console.WriteLine("--------------"); int decision; decision = Convert.ToInt32(Console.ReadLine()); if (decision == 1) { int WallieBatteryLevelShot; WallieBatteryLevelShot = 100 - 99; Console.WriteLine("Shooting Japanese Robot......"); Console.WriteLine("Wallie: Aghhhhhhh....You shot me!!!!!!"); Console.WriteLine("My battery level is at " + WallieBatteryLevelShot); Console.WriteLine("--------------------"); Console.WriteLine("Please exit application!!!!!"); } return(batteryLevel); } return(batteryLevel); }
public int africanJumping() { int jumpsAttempted; batteryLevel = 100; decreaseBattery = batteryLevel; Console.WriteLine("Enter how many jumps I should do 0 - 10 "); jumpsAttempted = Convert.ToInt32(Console.ReadLine()); if (jumpsAttempted == 0) { Console.WriteLine("C'mon there's jumping to do!"); decreaseBattery = batteryLevel; Console.WriteLine("Battery Level: " + decreaseBattery); return(decreaseBattery); } else if (jumpsAttempted <= 3) { Console.WriteLine("That's all? Fine. " + jumpsAttempted + " jumps completed"); decreaseBattery = batteryLevel - jumpsAttempted * 10; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } else if (jumpsAttempted <= 6) { Console.WriteLine("Now we're talking! " + jumpsAttempted + " jumps completed"); decreaseBattery = batteryLevel - jumpsAttempted * 10; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("1. Repair Fleet"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } else if (jumpsAttempted <= 9) { Console.WriteLine("Ok my legs are starting to hurt!"); decreaseBattery = batteryLevel - jumpsAttempted * 10; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("1. Repair Fleet"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } else if (jumpsAttempted == 10) { Console.WriteLine("*Breaks legs*"); decreaseBattery = batteryLevel - jumpsAttempted * 10; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("1. Repair Fleet"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 1) { RobotRepairFleet newRepairFleet = new RobotRepairFleet(); newRepairFleet.repairFleetNames("Samsung", 100); newRepairFleet.LegRepairSystem(); } else if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } return(decreaseBattery); }
public int russianWaving() { int wavesAttempted; batteryLevel = 100; int decreaseBattery = batteryLevel; Console.WriteLine("Enter how many waves I should do 0 - 10 "); wavesAttempted = Convert.ToInt32(Console.ReadLine()); if (wavesAttempted == 0) { Console.WriteLine("There's no one to say hi to!"); decreaseBattery = batteryLevel; Console.WriteLine("Battery Level: " + decreaseBattery); return(decreaseBattery); } else if (wavesAttempted <= 3) { Console.WriteLine("Hey there's " + wavesAttempted + " people. Hi!!!!!"); decreaseBattery = batteryLevel - wavesAttempted * 10; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } else if (wavesAttempted <= 6) { Console.WriteLine("Now we're talking! " + wavesAttempted + " people waved at."); decreaseBattery = batteryLevel - wavesAttempted * 10; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } else if (wavesAttempted <= 9) { Console.WriteLine("Wow thats a lot of people. ! " + wavesAttempted + " people waved at."); decreaseBattery = batteryLevel - wavesAttempted * 10; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } else if (wavesAttempted == 10) { Console.WriteLine("*Arm disconnects*"); decreaseBattery = batteryLevel - wavesAttempted; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("1. Repair Fleet"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 1) { RobotRepairFleet newRepairFleet = new RobotRepairFleet(); newRepairFleet.repairFleetNames("Samsung", 100); newRepairFleet.ArmRepairSystem(); } else if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } return(decreaseBattery); }
public int japaneseScreaming() { int volume; int batteryLevel = 100; int decreaseBattery = batteryLevel; Console.WriteLine("Enter a volume level 0-10: "); volume = Convert.ToInt32(Console.ReadLine()); if (volume == 0) { Console.WriteLine("*Shrugs shoulders*"); decreaseBattery = batteryLevel; Console.WriteLine("Battery Level: " + decreaseBattery); return(decreaseBattery); } else if (volume <= 3) { Console.WriteLine("*whispers*Banzai"); decreaseBattery = batteryLevel - volume * 10; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } else if (volume <= 6) { Console.WriteLine("*talking*Banzai"); decreaseBattery = batteryLevel - volume * 10; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("1. Repair Fleet"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } else if (volume <= 9) { Console.WriteLine("*Screams*Banzai!!!!!"); decreaseBattery = batteryLevel - volume * 10; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } else if (volume == 10) { Console.WriteLine("*Breaks voice box*"); decreaseBattery = batteryLevel - 100; Console.WriteLine("Battery Level: " + decreaseBattery); Console.WriteLine("Do you need a repair fleet? Do you need a recharge fleet?"); Console.WriteLine("---------------------"); Console.WriteLine("1. Repair Fleet"); Console.WriteLine("2. Recharge Fleet"); int choice; choice = Convert.ToInt32(Console.ReadLine()); if (choice == 1) { RobotRepairFleet newRepairFleet = new RobotRepairFleet(); newRepairFleet.repairFleetNames("Samsung", 100); newRepairFleet.VoiceRepairSystem(); } else if (choice == 2) { RobotRechargeFleet newRechargeFleet = new RobotRechargeFleet(); newRechargeFleet.rechargeAbility("Samsung", 100); } return(decreaseBattery); } return(decreaseBattery); }