-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Level 26 is difficult to understand #73
Comments
Oh, other people struggling with level 26 ended up making zero-height rows, which wasn't a concept previously introduced: |
Some people stumped by the math in level 26: |
I do agree that the phrasing is odd and I got around to it by doing grid-template-rows: repeat(4, 12.5px). It was tough to "get" that the water was only on the last row and that you needed to make mini rows before that. A simple tip to just look at the rest of the code before proceeding would help because that's when it clicked for me (when i saw the #water { |
I didnt get it :/ |
It's not clear |
so
So the problem here is understanding the problem. It taken 30mins for my mind to resolve it. 🥇 |
I was also stuck at level 26, @realtebo had a good explanation. For me, the following answer:
is much easier to understand than the shrunk one in the screenshot:
|
same here. Went flowless to levele 26 and got stuck for half an hour. |
Finger in the nose for all exercises, but where i was at level 26, ...! Stuck about 1hour, i also looked the code source if there is the code anywhere, and watched videos about grid-template-rows for nothing ^^'. In fact, i tried to make only 2rows with the first to 50px and second row lef-over, but i think it wasn't possible with So i wasn't alone to be stuck, i'm salve ^^. |
@lyonsun Your last answer |
I thought this one was goofy as well.
|
I don't understand after spending hours trying to find a solution, I came up with this: |
Thank you this one made sense for me! |
Agree, this one is extremely obtuse. I find it a bit to "this is tricky" and not very "this is useful." What possible layout concept does this help to illustrate? |
I have really enjoyed this tutorial and Flex Froggy too. Thank you for creating it! I would echo others in this thread and say that I had some trouble with this question too. Also the app does not accept my initial solution: grid-template-rows: 50px 1px 1px 1px 1fr; Visually, this appears to solve the problem, i.e. all carrots are watered. Granted some of the other rows are essentially invisible but that did not appear to be a constraint at first. Also, the wording lead me to believe that the first row was required to be 50px itself, hence me making 3 tiny ones. I hope this criticism is taken in the constructive light in which it is meant. Thank you again for creating a fun way to learn some tricky CSS concepts for a beginner like me! |
I've found why your solution doesn't work when you try it. You had three lines of 1px so its become 3px. You just need to remove three to fifty for it to work. ;) grid-template-rows: 47px 1px 1px 1px; or grid-template-rows: 47px 1px 1px 1px 1fr; |
I would like to stick with this solution because he said in the note that the water is set to fill only your 5th row, so you'll need to create 5 rows in total. This one is also good grid-template-rows: repeat(4,12.5px) 1fr; |
Considero que en este momento se hace referencia a lo que se conoce en css grid como "implicit grid " and "Explicit Grid". |
This solution may be visually correct, but 50+1+1+1 gives 53px, and it's more than the 50px they asked for; you could try 47 1 1 1 to add up to 50 but yet, the solutions above your comment are the best. |
My simple answer was this: What can easily turn into this: I don't think this answer ( grid-template-rows: repeat (4, 12.5px); ) is correct. |
I ended up only creating four rows and it accepted the answer as valid. Obviously this part of the exercise demands attention. |
After learning different solutions, i figured the main purpose of this problem. Now, the question:
Meaning :The last row should span excluding 50px from the start of the garden, to the end of the garden. code :
Explanation:
|
Found this by googling the solution to 26. Maybe a button that shows you the answer after a couple of failed attempts would help. |
@JuandaGarcia This problem was poorly worded tbh. Once I understood what I was actually supposed to do, it was pretty easy |
it's rather odd i easily solved 27 through 28 but not 26. thought i was the only one having difficulty with the phrasing of the instruction. |
You can figure out how to do it from the provided info if you read it very carefully, but it doesn't make intuitive sense to divide up the 50px empty area into a bunch of rows (whereas reasoning of where to split up columns/rows was understandable in the previous levels) - why would an empty area be split up if the goal is to water the area with plants? |
|
I agree that this level is too clever. It made me think, "Oh, I didn't realize it was that kind of puzzle game", in a bad way. |
Got the answer from here, but still i don't understand.. |
Hi Arnas, Rachel Andrew - https://rachelandrew.co.uk/ Jen Simmons - https://www.youtube.com/channel/UC7TizprGknbDalbHplROtag Una Kravets - https://1linelayouts.glitch.me/ Br: Zsolt |
Thank you for this. I did not get what they were asking me to do. |
working with : 50px 0 0 0; |
|
grid-template-rows: 50px 1fr 1fr 1fr 100%; This solution worked for us.. however, it stopped me for moving forward, since the button was disabled.. So to enable it, open dev tools, inspect the button and remove |
I think the best way to grasp it is to see that your only watering from the 5th row gridline to the 6th row gridline. Your water grid-row is unchangeable. |
It's easy to understand few popular solutions, with 0 high rows or with 4 * 12.5px. |
I was so close ! I was stuck in repeat(4, 13px) lmao |
grid-template-rows: 50px repeat(3, 1fr) 3643fr; |
There can be multiple ways to think:
|
Number 26 convinced me that I'm a bit slow. What a question !!!! |
ohh no, I am reading all your solutions, but I came up with so weird solution: 1fr 1fr 1fr 1fr 70fr ((( |
This is the correct answer, from previous questions we've been hinted that the empty space at the top height is 50px. We're told that water is only on the 5th row. So, what I did was:
|
Total newbie in the scene, but i finally understood the [repeat(4, 12.5px) 1fr;] simply by understanding that the water is ON the fifth row while the sixth is the -bottom- like it would be the container border (which is empty). So to "pull" the water up, we need to "compress" the others 4 behind. To do so, you know that the "first" line/blank-space is 50px in height. So we keep this last 1fr and for the others 4 we take them in the formula above that means: repeat 4 times the 1fr for 12.5px since the first line is 50px wide (50 divided by 4 equals 12.5) to compress the 4 rows and so the fifth row is "pulled up" filling all the container. Sorry for this messy explanation, hope future people will get the point looking at this :) |
grid-template-rows: 50px 0 0 0 ; works perfectly for me. |
imagine using 1fr 1fr 1fr 1fr 32fr |
After 5 years, it is still a riddle, |
MOST IMPORTANT SENTENCE IN THE LEVEL: It's not the exercise that is hard, its the way the question is formulated. You really have to pay more attention while reading it. Water all but the top 50 pixels of your garden. |
grid-template-rows: 50px 1fr 1fr 1fr 300000fr; também da certo |
@agraham75 I believe it correctly makes the first Edit: oh I guess not, I didn't notice those grid lines suggesting that the |
i feel like
The
By setting the height of rows to 0, those rows effectively collapse and become invisible, occupying no space in the layout. |
I love Flexbox Froggy and Grid Garden; thank you for this great resource.
I was in a nice flow state with Grid Garden levels gradually increasing in difficulty.
Then level 26 happened. It's such a frustrating jump in complexity.
Most of the time I was scratching my head trying to figure out the instructions:
I read and re-read this so many times. I was thinking: "There are multiple rows of vegetables but for some weird reason, the water can only fill the 5th row? But I'm supposed to create 5 rows? That doesn't make any sense."
Eventually I "figured out" that I was supposed to subdivide the 50px of space into 4 tiny rows. So far the levels had felt grounded in the garden metaphor. But this level felt like a gotcha riddle with no rationale in the garden. Why 4 tiny rows of dirt but 1 enormous "row" covering rows of vegetables? Even a little thing like having to make the rows 12.5px instead of an even number like 10px felt unnecessary and annoying.
I imagine level 26 is intended to teach a specific concept. I hope the level can be reworked to teach that concept in a simpler way.
Otherwise, great job on the flow.
The text was updated successfully, but these errors were encountered: