[OL] New Game

Posted by OL on June 26, 2009, 12:43 p.m.

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/86734

Then tell me how you fare against the A.I.

much luv

Comments

Grand-High Gamer 15 years, 6 months ago

Luvly.

marbs 15 years, 6 months ago

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:

OL 15 years, 6 months ago

Ah thanks marbs, that's a rare occurrence I never came across, I might fix it eventually.

Mush 15 years, 6 months ago

Provided hours of entertainment :D

The Avatrol 15 years, 6 months ago

Cool. Is the AI designed to make mistakes or will it always take the best possible move statistically?

marbs 15 years, 6 months ago

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.

OL 15 years, 6 months ago

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).

OBELISK 15 years, 6 months ago

The yellow is nauseating. But I guess that's not the point of the game.

noshenim 15 years, 6 months ago

The AI was not too easy..

But prevent the player from getting 3 in a row like this:

OOOOOOO

OOOOOOO

OOOOOOO

OOOOOOO

YOOOOOO

YYORRRO

OL 15 years, 6 months ago

Actually its meant to do that, but I don't know if it works properlly