Skip to content

Instantly share code, notes, and snippets.

@yosriady
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save yosriady/230b6d5bebfb283b22c1 to your computer and use it in GitHub Desktop.

Select an option

Save yosriady/230b6d5bebfb283b22c1 to your computer and use it in GitHub Desktop.
// "sp" is used to slow down the game - by putting in a timing loop between generations. A value of sp of
// 1000 should do one generation in about 1 second. A value of 0 will do the generation as fast as possible.
void generation_sleep(){
if(sp > 0){
sleep(sp);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment