Okay so it's nothing special, it's just my experiments with game A.I. (Connect 4) put onto the internet.
Play it here: http://www.yoyogames.com/games/show/86734Then tell me how you fare against the A.I.much luvOkay so it's nothing special, it's just my experiments with game A.I. (Connect 4) put onto the internet.
Play it here: http://www.yoyogames.com/games/show/86734Then tell me how you fare against the A.I.much luv
Luvly.
AI seems good, however I found a bug. With my last piece I got 4 reds in a row, however the game said that it was a draw:
Ah thanks marbs, that's a rare occurrence I never came across, I might fix it eventually.
Provided hours of entertainment :D
Cool. Is the AI designed to make mistakes or will it always take the best possible move statistically?
I got to an interesting situation here:
The AI could win by placing a yellow piece in the 3rd row from the right, however it refused to even though I gave it several opportunities to. I could also have won by placing a piece there, which gives the AI all the more reason to put one there. Perhaps the AI refused to play its piece there because it saw that if it did, I could win by placing a piece above it? Even so, it would have won first.Marbs, your reasoning is basically correct. Highlights a problem in my evaluation function really.
nodata10101, not exactly. It only plays one move ahead, and forgiving the bugs (like the above), it should be flawless in simple play - the only way to win is to force a win (two or more possible wins at once).The yellow is nauseating. But I guess that's not the point of the game.
The AI was not too easy..
But prevent the player from getting 3 in a row like this:OOOOOOOOOOOOOOOOOOOOOOOOOOOOYOOOOOOYYORRROActually its meant to do that, but I don't know if it works properlly