4 More Friends Katas
4.1 Healer Friends 006 Kata
read
Code a game with a zookeeper eating 5 tomatoes, and with 5 penguin friends.
code
#lang healer-zoo-friends (start zookeeper ((tomato 5)) ((penguin 5)))
In Ratchet:
4.2 Healer Friends 007 Kata
read
Code a game with a green elephant eating apples, and with blue kangaroo friends.
code
#lang healer-zoo-friends (start (elephant green) (apple) ((kangaroo blue)))
In Ratchet:
4.3 Healer Friends 008 Kata
read
Code a game with a hippo eating 4 orange bananas and 2 yellow fishes, and with 3 purple elephant friends.
code
#lang healer-zoo-friends (start hippo ((banana orange 4) (fish yellow 2)) ((elephant purple 3)))
In Ratchet:
4.4 Healer Friends 009 Kata
read
Code a game with a kangaroo eating 5 blue tomatoes, and with 3 apple and red banana friends.
code
#lang healer-zoo-friends (start kangaroo ((tomato blue 5)) ((apple 3) (banana red)))
In Ratchet:
4.5 Healer Friends 010 Kata
read
Code a game with an orange [choose-your-own-sprite] eating yellow fishes, green tomatoes, and 2 apples, and with 2 monkey and purple [choose-your-own-sprite] friends.
code
#lang healer-zoo-friends (start (rand orange) ((fish yellow) (tomato green) (apple 2)) ((monkey 2) (rand purple)))
In Ratchet: