Practice Problem - Design Connect 4 #1
kanmaytacker
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What?
It is a two-player connection board game, in which the players choose a color and then take turns dropping colored discs into a seven-column, six-row vertically suspended grid.
There could be human and bot players.
The pieces fall straight down, occupying the lowest 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. Connect Four is a solved game.
The first player can always win by playing the right moves.
Try the game out here
Why?
Common question in design and machine coding interviews.
How?
Beta Was this translation helpful? Give feedback.
All reactions