What are you, insane? What do you do in a situation where you have no prior experience?
If (noInfo) {
sh@t self}
Nope! You attempt to establish the relationship between the current situation and any and all prior situations that may be similar. Your (infinitely more intelligent) subconscious uses what us folks who studied statistics call a Bayesian inference to puzzle out the most suitable response.
That's what real intelligence is, reacting appropriately to situations as they emerge and change in response to the environment and the actions of other players. Not dogmatic responses to set in stone criteria.
It's also infinitely less time consuming and irritating than writing a hundreds of thousands of lines of code for each situation where the inputs are slightly different than an existing script.
edit: Dear lord you kids need to spend some time with the Civ4 SDK. Or in a math class.
I've just read through your two posts and here are my thoughts.
All you've really described is a situation of, if no information, then compare current data to previous instances looking for connection. If current situation bears similarity to previous situation, then data from previous situation is relevant to current. If data from previous situation suggests doing X, currently do X.
Add to this as many further if/then clauses as you want taking other sources into account , and you've built up a somewhat sophisticated system of A/B/C formally accountable deductive reasoning - as in, a complex succession of if/then statements which allows you to start from a variable position X, and apply weight to various possible responses, leading to an ultimate if/then of "if position X, perform action that has been assigned the most weight." You haven't got us out of an if/then procession, you've just shown that if/then situation can become increasingly complex.
Now, you brought up "Bayesian inference." Never dealt with it before - again, I'm no statistics/math guy - but I just did a bit of reading on it. It seems (at the base) to be a method of inference based on prior statistical probability with the intent of assigning weights to various potential probabilities... Of course, why do you assign probability weights to various possible courses of action/etc? In order to plug them into an if/then formula and come out with a course of action. I may be reading it wrong - and if I am, please feel free to correct me, and I'd appreciate it if you could explain how - but Bayesian inference seems like an inferential tool used to examine data and assign probabilistic weights to things. I don't see how this gets us out of the if/then deductive framework though - it's just a way to feed relevant information precisely into that framework.
And what's more, responding to my post, you informed us that they're not if/then statements, and rather "many of them are switch statements!"
Again, I'm no programmer, but I just looked up what a switch statement was... You talk like you know a lot on the subject (unlike us "kids") so perhaps you can correct me if I'm reading all this the wrong (again). It seems to me like it's just a programming method of compounding multiple if/then statements into a single coding structure so as to save code redundancies.
"
In computer programming, a switch, case, select or inspect statement is a type of selection control mechanism ... Its purpose is to allow the value of a variable or expression to control the flow of program execution via a multiway branch (or "goto", one of several labels). The main reasons for using a switch include improving clarity, by reducing otherwise repetitive coding, and (if the heuristics permit) also offering the potential for faster execution through easier compiler optimization in many cases."
http://en.wikipedia.org/wiki/Switch_statement
Doesn't that just describe a method of compounding multiple if/then statements into a "multiway branch," and in doing so, turn multiple if/then statements into a single unified statement that performs the function of all at once?
My apologies for the delay in responding, but name dropping doesn't make you more right, particularly when your audience isn't educated in whatever area you're coming from - it just means that other reasonably intelligent parties are going to be stuck trying to unpack the meaning behind the names before they can possibly respond. That is, if they aren't just intimidated by the dropped names ("oh, that guy knows WAY more than me!") - which I often think is the reason people start name dropping in the first place.
Personally, I've got a Masters in continental European philosophy and am working on my PhD (thesis examining conflicting presentations of weight in Nietzschean philosophy [heaviness/lightness, the spirit of gravity, dance, etc]) - though admittedly, thinking I'll be switching over to literature as I've been working on projects comparing the Taoist notion of the sage to Rousseau's noble savage and arguing that Nietzschean philosophy is a *huge* influence in the poetry of Josh Malihabadi, and that Josh is an important figure in a comprehensive study of intra-culture existential philosophy. If there's one thing hanging around this and several other forums has taught me though, even if I'm reasonably well educated and reasonably intelligent, there are people here who are more educated, more well read, and outright more intelligent than I am - any combination of the three. Assuming that you're *ever* talking to just "kids," particularly around an erudite forum like this history-buff strategy-nut gathering place, is really, really presumptuous on your part. It's obvious you have some knowledge which most of us (myself included) don't, so share it in debate - right now, you're coming off as the know-it-all kid who took the class someone else hasn't.
But anyways, the OP says "we'll never get beyond if/then statements in Civ AI, so don't get your hopes up!" I found that statement a bit iffy because, in contemporary philosophical debate, there's no agreement that ANY intelligence is more than increasingly complex systems of if/then formulas acting upon presented data, that all seemingly analog systems of decision making are in fact just extremely complex networks of if/then binaries. If that IS the case - and it's certainly not clear that it's not - hoping for more than if/then statements from artificial intelligence seems a bit of a stretch, since that's what even human intelligence boils down to.
Well, I've wasted my posting time for the day. Must get back to real work