Beta
Road To Nowhere - Reverse engineer this picture
Description:
Road To Nowhere
Your goal is to reverse engineer the picture below. You will have to create a general solution that will return the data of the following image for any width and height given.
A code golf version is available here.

Rules
- You must implement the function
d
. - Which takes 2 numbers, width and height.
- The returned format should be an array of rows, where the rows are arrays of colors, where the colors are arrays, with 3 truthy or falsey values, representing red, green and blue. e.g.
array[height][width][3]
Note: A helper function draw(width, height, array)
is available to you, which takes an array in the expected return format of d
.
Reference images




Puzzles
Similar Kata:
Stats:
Created | Jun 19, 2021 |
Published | Jun 19, 2021 |
Warriors Trained | 26 |
Total Skips | 0 |
Total Code Submissions | 100 |
Total Times Completed | 4 |
JavaScript Completions | 4 |
Total Stars | 3 |
% of votes with a positive feedback rating | 0% of 1 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 1 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 5 kyu |