Live data from Hacker News

Show HN: C4 – Connect Four, with AI

kenrick95.github.io

31–35 of 35 posts

Re: Show HN: C4 – Connect Four, with AI

#31
post #8

How I build this project: It was mid-2013 when I wanted to apply what I've learned from the MOOC CS188.1x Artificial Intelligence offered at edx.org. Around December 2013, I joined a bootcamp held in my university (Nanyang Technological University, Singapore) in which some of the speaker came from Mozilla. Here, I learned a lot of stuffs on JavaScript (they also introduced us to HN). Later, I thought of applying what…

Nice job, do you recommend the Artificial Intelligence MOOC? Is it fun?

It's amazing. Although quite time-consuming, the projects are nice: it was building an AI for Pac-man to maximize its score in various scenarios.

The next offering is starting soon:

https://www.edx.org/course/artificial-intelligence-uc-berkel...

Re: Show HN: C4 – Connect Four, with AI

#32
post #11

Nice work! I was actually planning to do a similar project in the near future. However, it troubles me that I was able to win when your AI didn't "block" me when I put 3 aligned circles. Shouldn't that be the very first rule for such an AI?

Normally it tries its best to avoid that situation, but sometimes your scenario happens and I did not know why.

Re: Show HN: C4 – Connect Four, with AI

#34
post #14

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.

Re: Show HN: C4 – Connect Four, with AI

#35
post #14

Earlier quoted context omitted.

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
Post reply on HN