Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Sevilla
- {
- class Program
- {
- static void Main(string[] args)
- {
- int choice, choice1, hp = 100, hp1 = 100;
- Console.WriteLine("Welcome to L'amour");
- Console.ReadKey();
- Console.WriteLine("1. Character 1");
- Console.WriteLine("2. Character 2");
- Console.WriteLine("3. Character 3");
- Console.WriteLine("4. Character 4");
- Console.Write("Choose your character. . .");
- choice = int.Parse(Console.ReadLine());
- if (choice == 1)
- {
- hp = 100;
- Console.WriteLine("You have picked player 1");
- Console.WriteLine("Player 1 has " + hp + "HP");
- Console.ReadKey();
- }
- else if (choice == 1)
- {
- hp = 120;
- Console.WriteLine("You have picked player 2");
- Console.WriteLine("Player 1 has " + hp + "HP");
- Console.ReadKey();
- }
- else if (choice == 1)
- {
- hp = 90;
- Console.WriteLine("You have picked player 2");
- Console.WriteLine("Player 1 has " + hp + "HP");
- Console.ReadKey();
- }
- else if (choice == 1)
- {
- hp = 80;
- Console.WriteLine("You have picked player 2");
- Console.WriteLine("Player 1 has " + hp + "HP");
- Console.ReadKey();
- }
- Console.Write("Choose another character. . . ");
- choice1 = int.Parse(Console.ReadLine());
- if (choice1 == 1)
- {
- hp1 = 100;
- Console.WriteLine("You have picked player 1");
- Console.WriteLine("Player 1 has " + hp + "HP");
- Console.ReadKey();
- }
- else if (choice1 == 1)
- {
- hp1 = 120;
- Console.WriteLine("You have picked player 2");
- Console.WriteLine("Player 1 has " + hp + "HP");
- Console.ReadKey();
- }
- else if (choice1 == 1)
- {
- hp1 = 90;
- Console.WriteLine("You have picked player 2");
- Console.WriteLine("Player 1 has " + hp + "HP");
- Console.ReadKey();
- }
- else if (choice1 == 1)
- {
- hp1 = 80;
- Console.WriteLine("You have picked player 2");
- Console.WriteLine("Player 1 has " + hp + "HP");
- Console.ReadKey();
- }
- bool game = true;
- while (game)
- {
- int move;
- Console.WriteLine("Player 1 Move. . .");
- Console.WriteLine("Attack 1");
- Console.WriteLine("Attack 2");
- Console.WriteLine("Attack 3");
- Console.WriteLine("Attack 4");
- Console.Write("What is your move?: ");
- move = int.Parse(Console.ReadLine());
- if (move == 1)
- {
- hp1 -= 10;
- Console.WriteLine("10 damage to player 2");
- Console.ReadKey();
- }
- else if (move == 2)
- {
- hp1 -= 15;
- Console.WriteLine("15 damage to player 2");
- Console.ReadKey();
- }
- else if (move == 3)
- {
- hp1 -= 20;
- Console.WriteLine("20 damage to player 2");
- Console.ReadKey();
- }
- else if (move == 4)
- {
- hp1 -= 25;
- Console.WriteLine("25 damage to player 2");
- Console.ReadKey();
- }
- if (hp1 <= 0)
- {
- Console.WriteLine("Player 2 loses. . . ");
- Console.ReadKey();
- break;
- }
- int move1;
- Console.WriteLine("Player 2 move. . .");
- Console.WriteLine("Attack 1");
- Console.WriteLine("Attack 2");
- Console.WriteLine("Attack 3");
- Console.WriteLine("Attack 4");
- move1 = int.Parse(Console.ReadLine());
- if (move1 == 1)
- {
- hp -= 10;
- Console.WriteLine("10 damage to player 1");
- Console.ReadKey();
- }
- else if (move1 == 2)
- {
- hp -= 15;
- Console.WriteLine("15 damage to player 1");
- Console.ReadKey();
- }
- else if (move1 == 3)
- {
- hp -= 20;
- Console.WriteLine("20 damage to player 1");
- Console.ReadKey();
- }
- else if (move1 == 4)
- {
- hp -= 25;
- Console.WriteLine("25 damage to player 1");
- Console.ReadKey();
- }
- if (hp <= 0)
- {
- Console.WriteLine("Player 1 loses. . . ");
- Console.ReadKey();
- break;
- }
- }
- Console.WriteLine("Thank you for playing our game. . . ");
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment