On this page:
4.1 Healer Friends 006 Kata
4.2 Healer Friends 007 Kata
4.3 Healer Friends 008 Kata
4.4 Healer Friends 009 Kata
4.5 Healer Friends 010 Kata

4 More Friends Katas

4.1 Healer Friends 006 Kata

read
Code a game with a llama eating 5 kiwis, and with 5 cow friends.
code
#lang healer-animal-friends
 
(start llama ((kiwi 5)) ((cow 5)))
In Ratchet:
image

4.2 Healer Friends 007 Kata

read
Code a game with a green cow eating apples, and with blue rabbit friends.
code
#lang healer-animal-friends
 
(start (cow green) (apple) ((rabbit blue)))
In Ratchet:
image

4.3 Healer Friends 008 Kata

read
Code a game with a rabbit eating 4 orange bananas and 2 yellow mushrooms, and with 3 purple pig friends.
code
#lang healer-animal-friends
 
(start
  rabbit
  ((banana orange 4) (mushroom yellow 2))
  ((pig purple 3)))
In Ratchet:
image

4.4 Healer Friends 009 Kata

read
Code a game with a pig eating 5 blue kiwis, and with 3 apple and red banana friends.
code
#lang healer-animal-friends
 
(start
  pig
  ((kiwi blue 5))
  ((apple 3) (banana red)))
In Ratchet:
image

4.5 Healer Friends 010 Kata

read
Code a game with an orange [choose-your-own-sprite] eating yellow mushrooms, green kiwis, and 2 apples, and with 2 llama and purple [choose-your-own-sprite] friends.
code
#lang healer-animal-friends
 
(start
  (rand orange)
  ((mushroom yellow) (kiwi green) (apple 2))
  ((llama 2) (rand purple)))
In Ratchet:
image