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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -