how to do a game that is simulated by a loop -
how program game simulated loop in people has repeat goes long takes out reach or pass square 80? doing snake & ladder game , need write code allow happen
you need use loop exit condition checks if player has reached square 80 or otherwise won.
while ( !hasplayerwon() ) { //continue game }
Comments
Post a Comment