Quote:
Ed Kolis said:
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
|
It depends:
1) We wouldn't be using a commercial development package for this. Like you said, the AI parser/compiler would be done using tools Aaron and the dev team provide, so that functionality is up to them.
2) Would they even want to implement recursion for us, with all the implications we've both mentioned?
3) And how much power do they want to give to recoding the AI versus more limited customization? Space Empires isn't open source. I could even see someone coming up with a really whiz-bang AI mod and selling it for profit.
Andy