• Skills
  • Roles
Note: The library is still in beta and assessments are a work in progress. Please go to https://t1.gl/assessments to view instructions on assessments.
TIME TO COMPLETE
4+ Hrs
CHALLENGE LEVEL
Intermediate

Implement the Connect Four game as a web or mobile application with two modes:

  • Play against a friend (on the same computer) and
  • Play against a computer AI (that should beat a random human 60-100% of the time).

Rules

Connect Four is a two-player connection game in which the players first choose a color and then take turns dropping colored discs from the top into a seven-column, six-row vertically suspended grid.

  • The pieces fall straight down, occupying the next available space within the column.
  • The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs.

You can find more information about the game at Wikipedia. A reference implementation may be found on the App Store. You can use image assets from this reference implementation or that you find online.

Take Assessment