Dim seed,Number,RandomAttack1,RandomAttack2, Healthpoints1, Healthpoints2 as integer
console.WriteLine("Please enter a random number for a new game")
Seed = console.readline()
Dim RandomClass As New Random(seed)
console.WriteLine("The amount of damage you and the computer deal is randomly generated to make it fair, difficulty levels set the upper and lower limits of the random number generator")
console.WriteLine("if you select easy, you will deal more damage. If you select medium, both of the pokemon deal equal damages to each other, if you select hard, you will deal less damage to the opposite pokemon")
console.writeline("please enter a level of difficulty. 1 for easy, 2 for medium and 3 for difficult")#
Number = console.ReadLine()
Loop until Number <= 3 And Number >= 1
console.writeline(" You have chosen easy difficulty")
console.WriteLine("LET THE GAMES BEGIN!")
console.WriteLine("You have chosen medium difficulty")
console.WriteLine("LET THE GAMES BEGIN!")
console.WriteLine("You have chosen Hard Difficulty")
console.WriteLine("LET THE GAMES BEGIN!")
console.WriteLine("--------A WILD SQUIRLE EMERGED!--------")
console.WriteLine("--------I CHOOSE YOU! PIKACHU!--------")
Console.writeline("**************************************")
console.writeline(" Pikachu has " & Healthpoints1 & " Healthpoints-------Squirtle has " & Healthpoints2 & " Healthpoints")
console.WriteLine("select an attack!")
RandomAttack1 = RandomClass.Next(20, 40)
RandomAttack2 = Randomclass.Next(10, 30)
RandomAttack1 = RandomClass.Next(25, 45)
RandomAttack2 = RandomClass.Next(25, 45)
RandomAttack1 = RandomClass.Next(10,30)
RandomAttack2 = RandomClass.Next(20, 40)
console.WriteLine("1 for thunderbolt, 2 for Quick Attack, 3 for thundershock, 4 for Iron Tail")
Attackname = console.ReadLine()
Loop until Number <= 4 And Number >= 1
console.writeline("-------PIKACHU USED THUNDERBOLT!-------")
console.writeline("It dealt " & RandomAttack1 & " damage")
Healthpoints2 = Healthpoints2 - RandomAttack1
console.writeline(" Pikachu has " & Healthpoints1 &" Healthpoints-------Squirtle has " & Healthpoints2 & " Healthpoints")
console.writeline("-------PIKACHU USED IRON TAIL!-------")
console.writeline("It dealt " & RandomAttack1 & " damage")
Healthpoints2 = Healthpoints2 - RandomAttack1
console.writeline(" Pikachu has " & Healthpoints1 &" Healthpoints-------Squirtle has " & Healthpoints2 & " Healthpoints")
console.writeline("-------PIKACHU USED THUNDERSHOCK!-------")
console.writeline("It dealt " & RandomAttack1 & " damage")
Healthpoints2 = Healthpoints2 - RandomAttack1
console.writeline(" Pikachu has " & Healthpoints1 &" Healthpoints-------Squirtle has " & Healthpoints2 & " Healthpoints")
console.writeline("-------PIKACHU USED QUICK ATTACK-------")
console.writeline("It dealt " & RandomAttack1 & " damage")
Healthpoints2 = Healthpoints2 - RandomAttack1
console.writeline("Pikachu has " & Healthpoints1 &" Healthpoints-------Squirtle has " & Healthpoints2 & " Healthpoints")
If Healthpoints1 <= 0 then
console.WriteLine("Squirtle defeated Pikachu!")
else if Healthpoints2 <= 0
console.WriteLine("Pikachu defeated Squirtle!")
console.WriteLine("**************************************")
console.Writeline("******SQUIRTLE ATTACKED PIKACHU!*******")
Healthpoints1 = Healthpoints1 - RandomAttack2
console.Writeline(" It dealt " & RandomAttack2 & " damage to Pikachu")
console.writeline(" Pikachu has " & Healthpoints1 &" Healthpoints-------Squirtle has " & Healthpoints2 & " Healthpoints")
Loop until Healthpoints1 <= 0 or Healthpoints2 <= 0
console.WriteLine("You have won a bronze key!")
console.WriteLine("You have won a Silver key!")
console.WriteLine("You have won a Golden key!")