Show HN: C4 – Connect Four, with AI
11–20 of 35 posts
Re: Show HN: C4 – Connect Four, with AI
#12Re: Show HN: C4 – Connect Four, with AI
#13Re: Show HN: C4 – Connect Four, with AI
#14I 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.
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
#15How 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…
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
#16I 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. ;)
Re: Show HN: C4 – Connect Four, with AI
#17Re: Show HN: C4 – Connect Four, with AI
#18Re: Show HN: C4 – Connect Four, with AI
#19I 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.