public int potion_leftP1;
public int potion_leftP2;
public int spell01_leftP1;
public int spell02_leftP1;
public int spell03_leftP1;
public int spell01_leftP2;
public int spell02_leftP2;
public int spell03_leftP2;
public void castspell01_P1()
Console.WriteLine("P1 bruka " + spell01);
Console.WriteLine("Du he " + spell01_leftP1 + " casts igjen");
Console.WriteLine("Du har ikkje meir av den spellen igjen");
public void castspell02_P1()
Console.WriteLine("P1 bruka " + spell02);
Console.WriteLine("Du he " + spell02_leftP1 + " casts igjen");
Console.WriteLine("Du har ikkje meir av den spellen igjen");
public void castspell03_P1()
Console.WriteLine("P1 bruka " + spell03);
public void castspell01_P2()
Console.WriteLine("P2 bruka " + spell01);
Console.WriteLine("Du he " + spell01_leftP2 + " casts igjen");
Console.WriteLine("Du har ikkje meir av den spellen igjen");
public void castspell02_P2()
Console.WriteLine("P2 bruka " + spell02);
Console.WriteLine("Du he " + spell02_leftP2 + " casts igjen");
Console.WriteLine("Du har ikkje meir av den spellen igjen");
public void castspell03_P2()
Console.WriteLine("P2 bruka " + spell03);
public void potionleftP2()
Console.WriteLine("Du har ingen potions igjen");
public void potionleftP1()
Console.WriteLine("Du har ingen potions igjen");
Random numberGen = new Random();
roll = numberGen.Next(0, 10);
Console.WriteLine("P1 start");
Console.WriteLine("P1 hp:" + P1_hp);
Console.WriteLine("P2 hp:" + P2_hp);
Console.WriteLine("Bruk: " + spell01 + ":" + spell01_leftP1 + " = 1");
Console.WriteLine("Bruk: " + spell02 + ":" + spell02_leftP1 + " = 2");
Console.WriteLine("Bruk: " + spell03 + ":∞ = 3");
Console.WriteLine("Bruk: " + potion04 + ": " + potion_leftP1 + " = 4");
String battle = Console.ReadLine();
Console.WriteLine("P1 bruka " + potion04);
Console.WriteLine("Turen din blei skippa");
Console.WriteLine("P2 Vant");
Console.WriteLine("P2 start");
Console.WriteLine("P2 hp:" + P2_hp);
Console.WriteLine("P1 hp:" + P1_hp);
Console.WriteLine("Bruk: " + spell01 + ":" + spell01_leftP2 + " = 1");
Console.WriteLine("Bruk: " + spell02 + ":" + spell02_leftP2 + " = 2");
Console.WriteLine("Bruk: " + spell03 + ":∞ = 3");
Console.WriteLine("Bruk: " + potion04 + ": " + potion_leftP2 + " = 4");
String battle = Console.ReadLine();
Console.WriteLine("P2 bruka " + potion04);
Console.WriteLine("Turen din blei skippa");
Console.WriteLine("P1 Vann");
public static void Main()
one_v_one Battle = new one_v_one();
Battle.spell01 = "All might push";
Battle.spell02 = "Shinra tensei";
Battle.spell03 = "Khamehameha";
Battle.potion04 = "HP++";
Battle.potion_leftP1 = 3;
Battle.potion_leftP2 = 3;
Battle.spell01_leftP1 = 2;
Battle.spell02_leftP1 = 4;
Battle.spell03_leftP1 = 6;
Battle.spell01_leftP2 = 2;
Battle.spell02_leftP2 = 4;
Battle.spell03_leftP2 = 6;