InterviewLegend

Design a Connect-N Game

Sometimes asked
Alex Chen20 min readGuide updated

The newest report is from March 2025, more than a year and a half ago, so treat this as an older prompt that can still come up. That candidate, in Houston, got it in their first round, which was titled "System Design, primarily object-oriented programming." The task was "Design a Connect-7 game," written on HackerRank. In May 2021 an onsite candidate described "a board game where the winner has n consecutive moves" in one of three back-to-back coding interviews. Back in 2016, a VP of Engineering candidate was asked to "design a simple game." None of them posted follow-ups. So the rules here are the standard Connect Four rules with the line length turned into a parameter. Confirm them in the first two minutes: does a piece fall to the lowest empty cell, and how many players are there?

It looks like a coding warm-up. It isn't graded like one. Two Sigma's careers page lists design and testing among the areas it grades, and the code has to run. Plan for code that runs end to end, with tests you add before anyone asks for them.

The Two Sigma angle
Two candidates in 2022 said Two Sigma reuses a small set of questions, and Connect-N alone spans 2021 to 2025. Assume your interviewer has seen this game many times. A clean class split and a correct diagonal check are the floor, so the extra credit comes from tests and edge cases.

Two SigmaPremium lesson · System design round

The Two Sigma design, worked end to end.

  1. Requirements and scopeSystem design
  2. The API and data model
  3. The design, drawn out1 diagram
  4. 5 deep divesWith the tradeoffs
Get the Two Sigma questions

$49 a year · all 107 companies · instant access

20,000+ candidate reports

Two Sigma interview guide

Know what Two Sigma asks before you walk in.

21 coding · 4 system design · 13 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Two Sigma interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.