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  } 

loops in javascript, loops in c++ :d


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -