|
|
|
@ -1,11 +1,15 @@ |
|
|
|
|
# Install |
|
|
|
|
|
|
|
|
|
Run `composer install` after downloading. |
|
|
|
|
|
|
|
|
|
# Description |
|
|
|
|
|
|
|
|
|
Excercise for implementing TDD (Test-driven development) in PHP. |
|
|
|
|
|
|
|
|
|
# Output |
|
|
|
|
|
|
|
|
|
Converts map (1 indicating a coffee) of a table looking like this: |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
$map = [ |
|
|
|
|
[0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], |
|
|
|
@ -30,6 +34,7 @@ $map = [ |
|
|
|
|
[0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], |
|
|
|
|
]; |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
Into this: |
|
|
|
|
|
|
|
|
|
![alt text](output.png "Logo Title Text 1") |
|
|
|
|
![alt text](output.png "Logo Title Text 1") |
|
|
|
|