No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Help, I cannot work out how to get my loop to continue until the user enters in 0. If the user enters 1 then the loop needs to continue until there is no more groups to enter which is the point the user enters a 0 [code]import java.util.Scanner; public class … |
|
Can someone please tell me what I am doing wrong with this loop. I want to end the loop when either one of the tanks armour reaches zero. Also if I wanted to add more tanks how can I have the loop end? Thanks import random class Tank (object): def … |
|
Sorry I just realise that made not sense. I have created a program in python similar to battleships. I have created the class section which were working when I include the direction section in the main and not as a seperate method, However when I move the method into a … |