Try it out...I think the AI is unbeatable, but let me know if you're able to beat it Source included. (this version is a lot better than the one i released a long time ago)
Try it out...I think the AI is unbeatable, but let me know if you're able to beat it Source included. (this version is a lot better than the one i released a long time ago)
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
doh
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
One problem, after you win or lose the first time you start back off with the same board.
lol...funny i didn't notice that >< thanks!
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
Yeah, you need to re-initialize the board, because, as it stands now, your program can only be used once.
Otherwise, very good job.
FAQ
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.
"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.
Why do they call it AI when all it does is run on a basic set of rules?
Gah, seriously? How did you do it?Originally posted by Caze
I won the AI with the first try.
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
Looks pretty good. Also you may want to implement different difficulty settings as well. You can dumb down the checks or something on lower difficulty settings. Or something like..
Easy - Just randomly moves
Medium - It will attempt to block you before it checks if it can win.
Hard - It will check to see if it can win before it checks if it can block.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
Ah, I was thinking about that before. I'll try to implement difficulty settings, as well as a 2 player mode!
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
Don't humans run on some pretty basic rules? We gotta eat, sleep, go to the bathroom, reproduce, etc. We usually either have to go to school or go to work. We have objectives and goals we wish to meet and in order to do so, we follow certain rules.Originally posted by Munkey01
Why do they call it AI when all it does is run on a basic set of rules?
Anyway, on a less etheral level, the AI for this game is really good. I think it's alright to call it artificial intelligence if it's just as good at playing tic-tac-toe as genuine intelligence.
FAQ
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.
"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.
Yea, it kicks my butt each time . But to my question, we have a basic set of rules which we must use in which to survive. But we can create our own rules and act upon them. I mean this game has very simple 'AI' since it is such a simple game.think it's alright to call it artificial intelligence if it's just as good at playing tic-tac-toe as genuine intelligence.
Yeah, well really serious AI is supposed to get closer and closer to the way humans think. According to a side note in my textbook, here are the main principles of AI:Originally posted by Munkey01
But to my question, we have a basic set of rules which we must use in which to survive. But we can create our own rules and act upon them. I mean this game has very simple 'AI' since it is such a simple game.
- Search
- Rules
- Reasoning
- Planning
- Pattern Recognition
- Knowledge Bases
The reason humans create new rules is in order to achieve a goal. An AI should be able to achieve a goal by searching through all possible solutions and planning what must be done. During this thinking process, an AI should take into account rules it has been taught, and patterns it has recognized as well as conclusions it has reached from the facts and rules it has been provided.
Of course, AI can't have free will like humans. This isn't a flaw in AI's design; it's a safeguard. Who knows what computers would do if they had free will? That's why programs must be given certain rules they should follow.
This reminds me of a sci-fi book I once read, The Positronic Man. That was about a robot who became very human as the novel progressed. Anyway, in that fictional world, all robots were programmed with these three basic rules to be followed in this order:
[list=1][*]Do not kill humans or allow them to die.[*]Follow humans' orders.[*]Try to preserve yourself.[/list=1]
Given those simple rules in that order, a robot could be ordered to dismantle itself, but not to kill another human. I don't know about you, but I wouldn't want to be near an AI that would be allowed to do all of the crazy crap humans do.
FAQ
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.
"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.