Namely, if we encounter an empty square on the first row,
we know that the grid is not yet full.
This is what we will concretely code.
We will iterate square by square
on the first row, "grille[0]", and test the squares.
If one or more squares are empty, then we know that the grid is not full.
Therefore, the "plein" function will return "false".
Otherwise, obviously, the grid is full
and we will thus return the value "true",
signifying that the grid is full.
Now, we have finished coding our little
Connect Four application.
The goal of this case study was to show you how to tackle
the programming of such an application when we are programming begginers.
Several key ideas are to be remembered.
First of all, always proceed bottom-up.
Start by identifying the essential types,
the fundamental functionalities
before dealing with the details.
Each fundamental function can then, at its turn,
be modularized, call other functions or more details
helping to fulfill the process.