Live data from Hacker News

Show HN: C4 – Connect Four, with AI

kenrick95.github.io

11–20 of 35 posts

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

#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?

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

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

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

#15

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…

Awesome! It's wonderful to see these kind of side projects for deliberate practice.

I also expect to build some of these at http://ai-maker.com/

Thanks for sharing it and congratulations!

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

#16
post #9

I wrote a C version of a connect 4 AI and used emscripten to build a JavaScript / AngularJS version. You can check it out for comparison: http://rmarcus.info/blog/2014/12/23/connect4.html Edit -- Github is here: https://github.com/RyanMarcus/connect4 Looks like my AI beats your AI. ;)

Just beat yours at 5 moves ahead
Post reply on HN