while (HullShipA > 0 && HullShipB > 0 && HullShipC > 0)
{
// do whatever i wanna do
}
Console.Writeline("End Game");
So i'm kinda new to c# but here is the deal:
In this simulation, ships attack eachother for damage and the way it is, as soon as 1 ship gets destroyed the game ends.
How could I make it so the game only ends with one ship left (therefore becomming the winner)?
Also, I set the whole thing so ship A attacks B that Attacks C that attacks A and so on.
If a wanted to make A attack C after B dies, would I have to add some if's here and there or is there a more simple solution?
Thanks in advance!!