Skip to content

jaylensoeur/checkerboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkerboard

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
+----+----+----+
|    |####|    |
|    |####|    |
+----+----+----+
|####|    |####|
|####|    |####|
+----+----+----+
|    |####|    |
|    |####|    |
+----+----+----+
|####|    |####|
|####|    |####|
+----+----+----+

Installation

git clone https://github.com/jaylensoeur/checkerboard.git

curl -sS https://getcomposer.org/installer | php

./composer.phar install

Usage

./bin/checkerboard-drawer --cols [number] --rows [number]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages