April 2020
Intermediate to advanced
380 pages
9h 24m
English
How would you represent a Connect 4 board? There are two commonly used methods for representing the Connect 4 board, along with the game state. Let's take a look:
|1 2 3 4 5 6 7 --+-------------- 1|. . . . . . . 2|. . . . . . . 3|. . . . . . . 4|. . . . o x . 5|x o x . o o . 6|o x x o x x o
This form is, however, a bit lengthy and not very computationally friendly.
Read now
Unlock full access