exercism-perl5

Repository for my Perl 5 Exercism exercises
git clone git://git.samirparikh.com/exercism-perl5
Log | Files | Refs | README

README.md (1986B) - raw


      1 # Kindergarten Garden
      2 
      3 Welcome to Kindergarten Garden on Exercism's Perl 5 Track.
      4 If you need help running the tests or submitting your code, check out `HELP.md`.
      5 
      6 ## Instructions
      7 
      8 Given a diagram, determine which plants each child in the kindergarten class is
      9 responsible for.
     10 
     11 The kindergarten class is learning about growing plants. The teacher
     12 thought it would be a good idea to give them actual seeds, plant them in
     13 actual dirt, and grow actual plants.
     14 
     15 They've chosen to grow grass, clover, radishes, and violets.
     16 
     17 To this end, the children have put little cups along the window sills, and
     18 planted one type of plant in each cup, choosing randomly from the available
     19 types of seeds.
     20 
     21 ```text
     22 [window][window][window]
     23 ........................ # each dot represents a cup
     24 ........................
     25 ```
     26 
     27 There are 12 children in the class:
     28 
     29 - Alice, Bob, Charlie, David,
     30 - Eve, Fred, Ginny, Harriet,
     31 - Ileana, Joseph, Kincaid, and Larry.
     32 
     33 Each child gets 4 cups, two on each row. Their teacher assigns cups to
     34 the children alphabetically by their names.
     35 
     36 The following diagram represents Alice's plants:
     37 
     38 ```text
     39 [window][window][window]
     40 VR......................
     41 RG......................
     42 ```
     43 
     44 In the first row, nearest the windows, she has a violet and a radish.  In the
     45 second row she has a radish and some grass.
     46 
     47 Your program will be given the plants from left-to-right starting with
     48 the row nearest the windows. From this, it should be able to determine
     49 which plants belong to each student.
     50 
     51 For example, if it's told that the garden looks like so:
     52 
     53 ```text
     54 [window][window][window]
     55 VRCGVVRVCGGCCGVRGCVCGCGV
     56 VRCCCGCRRGVCGCRVVCVGCGCV
     57 ```
     58 
     59 Then if asked for Alice's plants, it should provide:
     60 
     61 - Violets, radishes, violets, radishes
     62 
     63 While asking for Bob's plants would yield:
     64 
     65 - Clover, grass, clover, clover
     66 
     67 ## Source
     68 
     69 ### Created by
     70 
     71 - @bistik
     72 
     73 ### Contributed to by
     74 
     75 - @kytrinyx
     76 - @m-dango
     77 - @rfilipo
     78 
     79 ### Based on
     80 
     81 Random musings during airplane trip. - http://jumpstartlab.com