View Single Post
  #11  
Old May 27th, 2005, 01:49 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: interview with Aaron Hall

Who says recursion wouldn't be possible? As long as he lets us define functions, couldn't we do something like this:

Code:

function plan(n) {
if n > 0 {
plan(n-1)
// plan ahead for turn now + n
}
else {
// do stuff for this turn
}
}



We'd just have to make sure not to code any infinite loops
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote