jsbin.com

Games

board game

SHOW HN2013

jsbin.com

pure client-side Connect Four AI with Web Workers, AngularJS, Firebase

jsbin.com

#connect four#web workers#javascript ai#angularjs#game ai

39points
13comments
#638of 1,739 in 2013
Top 37%of 2013 by points

How HN took it

DebatedReal support and real criticism

2 positive, 1 neutral or asking, 2 mixed, 2 critical, out of 7 comments about the project. Thread score 0.00.

Performance: 2 for, 1 againstExecution: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Impressive, well-executed AI and clean UI

    From 4 comments
    • Wow, great work. Does the AI play perfectly? Edit: Looks like the answer is no, since I drew it while playing second. One option to improve the engine could be to give it an…
      tedsanders on HN
    • It's quite strong. Thanks for creating this.
      oakaz on HN
    • The AI is impressive, but it mostly fails when you just go for a horizontal four at the lowest row. I won 4 out of 3 games like that. UI is good, gets the job done.
      umutgultepe on HN
    • This game is not fun to play. The graphics and the UI are solid. And apparently, the AI is also solid. Good work. How about a human vs human version?
      benatkin on HN
  • Good example of web workers use

    From 1 comment
    • Seeing this reminds me of a similar project I had to do as an undergrad, though nowhere as fun/elegant as the submitter's. Also nice to see web workers implemented for the AI as…
      yareally on HN

Objections

  • AI is beatable with simple strategies like filling the bottom row horizontally or center-first

    From 2 comments
    • The AI is impressive, but it mostly fails when you just go for a horizontal four at the lowest row. I won 4 out of 3 games like that. UI is good, gets the job done.
      umutgultepe on HN
    • Filling in the first row from the center out beats the AI every time.... I'm sure the AI is a technical marvel - still needs some work though.
      crystaln on HN
  • Game is not fun to play

    From 1 comment
    • This game is not fun to play. The graphics and the UI are solid. And apparently, the AI is also solid. Good work. How about a human vs human version?
      benatkin on HN
  • UI bug: placing a token first does not start the game like the OK button

    From 1 comment
    • Awesome work! There's a bug in the UI: placing a token should start the game in the same way as clicking "OK, go". Currently, the game itself will work fine but the red arrows at…
      chad_oliver on HN

Requests

  • Add human vs human mode

    From 1 comment
    • This game is not fun to play. The graphics and the UI are solid. And apparently, the AI is also solid. Good work. How about a human vs human version?
      benatkin on HN
  • Add an opening book to the engine

    From 1 comment
    • Wow, great work. Does the AI play perfectly? Edit: Looks like the answer is no, since I drew it while playing second. One option to improve the engine could be to give it an…
      tedsanders on HN

Questions

  • Why is the function named pvs?

    From 1 comment
    • Very cool. Scanning the source code makes it look like you were using Alpha-Beta pruning[0], but I'm not totally sure why the function is named 'pvs'. Does anyone have a quick…
      binofbread on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/6384713)