A little cli program that displays to the console a checkerboard based on the number of rows and cols.
Drawing checker board
Row : 6
Column : 6
+----+----+----+----+----+----+
| |####| |####| |####|
| |####| |####| |####|
+----+----+----+----+----+----+
|####| |####| |####| |
|####| |####| |####| |
+----+----+----+----+----+----+
| |####| |####| |####|
| |####| |####| |####|
+----+----+----+----+----+----+
|####| |####| |####| |
|####| |####| |####| |
+----+----+----+----+----+----+
| |####| |####| |####|
| |####| |####| |####|
+----+----+----+----+----+----+
|####| |####| |####| |
|####| |####| |####| |
+----+----+----+----+----+----+
./checkerboard-drawer --cols 3 --rows 4
Drawing checker board
Row : 4
Column : 3
+----+----+----+
| |####| |
| |####| |
+----+----+----+
|####| |####|
|####| |####|
+----+----+----+
| |####| |
| |####| |
+----+----+----+
|####| |####|
|####| |####|
+----+----+----+
git clone https://github.com/jaylensoeur/checkerboard.git
curl -sS https://getcomposer.org/installer | php
./composer.phar install
./bin/checkerboard-drawer --cols [number] --rows [number]