Skip to content

Commit

Permalink
Sync the kindergarten-garden exercise's docs with the latest data. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored May 22, 2024
1 parent 5e7cb74 commit 13ca44b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
32 changes: 15 additions & 17 deletions exercises/practice/kindergarten-garden/.docs/instructions.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
# Instructions

Given a diagram, determine which plants each child in the kindergarten class is
responsible for.
Your task is to, given a diagram, determine which plants each child in the kindergarten class is responsible for.

The kindergarten class is learning about growing plants.
The teacher thought it would be a good idea to give them actual seeds, plant them in actual dirt, and grow actual plants.
There are 12 children in the class:

- Alice, Bob, Charlie, David, Eve, Fred, Ginny, Harriet, Ileana, Joseph, Kincaid, and Larry.

Four different types of seeds are planted:

They've chosen to grow grass, clover, radishes, and violets.
| Plant | Diagram encoding |
| ------ | ---------------- |
| Grass | G |
| Clover | C |
| Radish | R |
| Violet | V |

To this end, the children have put little cups along the window sills, and
planted one type of plant in each cup, choosing randomly from the available
types of seeds.
Each child gets four cups, two on each row:

```text
[window][window][window]
........................ # each dot represents a cup
........................
```

There are 12 children in the class:

- Alice, Bob, Charlie, David,
- Eve, Fred, Ginny, Harriet,
- Ileana, Joseph, Kincaid, and Larry.

Each child gets 4 cups, two on each row.
Their teacher assigns cups to the children alphabetically by their names.
Their teacher assigns cups to the children alphabetically by their names, which means that Alice comes first and Larry comes last.

The following diagram represents Alice's plants:
Here is an example diagram representing Alice's plants:

```text
[window][window][window]
Expand Down
6 changes: 6 additions & 0 deletions exercises/practice/kindergarten-garden/.docs/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Introduction

The kindergarten class is learning about growing plants.
The teacher thought it would be a good idea to give the class seeds to plant and grow in the dirt.
To this end, the children have put little cups along the window sills and planted one type of plant in each cup.
The children got to pick their favorites from four available types of seeds: grass, clover, radishes, and violets.

0 comments on commit 13ca44b

Please sign in to comment.