View Single Post
  #4  
Old 08-11-2005, 05:00 PM
dominic dominic is offline
Member
 
Join Date: Aug 2005
Posts: 8
Hmmm... I am not quite sure if I completely understand how this works with the two runs (one for error checking) since if I change the while statement to an if statement it wont print it twice anymore.
what makes the difference?
dominic

code:
-------
import viz

viz.go()
h = 1
h = viz.input("enter the number of human players: ")

if (h>5):
print "max of players is 5"
h = viz.input("enter the number of human players: ")

viz.quit()
Reply With Quote