Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I want to note that you can win every time by dropping wherever first, then on your next moves dropping every piece on top of the AI's pieces.


Unless I've totally misunderstood, I don't think you're right.

For instance, on your first go, drop in column 0. Then, the AI drops in columns 1, 2, 3, 4, leading to this:

    . . . . . . .
    . . . . . . .
    . . . . . . .
    . . . . . . .
    . X X X . . .
    X O O O O . .


It could have been fixed after my post, I won 8 times in a row and it seemed to be some kind of fluke.

After trying it now, the AI actually tries harder to beat you, and my previous method is not effective anymore.


Just a clarification: The latest commit is around a month ago. https://github.com/kenrick95/c4


Interesting, this method has lead to the game freezing a couple times. And another time it seemed that the computer just skipped it's turn.


only got a draw by this method




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: