Boucle fonctionnelle, mais il manque les calculs de fin
continuous-integration/drone/push Build is passing Details

pull/87/head
Remi NEVEU 11 months ago
parent e90f8cb185
commit b58f363881

@ -240,11 +240,17 @@ class Program
op = Console.ReadLine(); op = Console.ReadLine();
} }
int test = Convert.ToInt32(op); int test = Convert.ToInt32(op);
while(((Game)sender).UsedMap.CheckOperationPossible(test-1)) while(((Game)sender).UsedMap.CheckOperationPossible(test-1))
{ {
Console.WriteLine("Invalid operation. Please choose again."); Console.WriteLine("Invalid operation. Please choose again.");
Console.WriteLine(); Console.WriteLine();
op = Console.ReadLine(); op = Console.ReadLine();
while (op != "1" && op != "2" && op != "3" && op != "4" && op != "5")
{
Console.WriteLine("Invalid operation. Please choose again.");
op = Console.ReadLine();
}
test = Convert.ToInt32(op); test = Convert.ToInt32(op);
} }

Loading…
Cancel
Save