gridgarden
gridgarden copied to clipboard
Level 21 description vs. accepted answer
The description states the following:
For example, we previously defined five 20% columns with the rule grid-template-columns: 20% 20% 20% 20% 20%;.
This can be simplified as grid-template-columns: repeat(5, 20%);
Using grid-template-columns with the repeat function, create eight columns each with 12.5% width.
This way you won't overwater your garden.
This should result in a correct answer of:
grid-template-columns: repeat(8, 12.5%);
The game accepts:
grid-template-columns: 12.5%;
I'm not sure if that's intended behavior, but it didn't behave as I would have expected. Thanks for making such a great game!
Hey @SwankyLegg, thanks for opening an issue on this. Yeah this is the expected behavior. Most of the levels have multiple approaches for solving them, and the game only does a simple check for if everything is in its right place. So for now it's on the players to solve it within any additional constraints that the instructions give.
But it may be worthwhile to add extra checks that each level is solved in the right way to reduce any confusion.