5

Pygame keeps not responding

view full story
linux-howto

http://ubuntuforums.org – I am trying to create a battleship in pygame and it works okay but after a bit the pygame screen doesn't respond but the console is still running. *I'm pretty sure the problem is in the for loop in method ask() but I'm not completely sure* *Also, I have the user enter information on the cmd window, not the actual pygame window* Here is the code: Code: import pygame, os, time, sys, string, random ran=random.randint(0,9) ran1=random.randint(0,9) running=0 count=0 game=True #stats shots=0 hits=0 pygame.init() pygame.display.set_caption("kBattleship") #size size=(640,480) screen= (Hardware)