6 More Enemies Katas
6.1 Healer Enemies 006 Kata
read
Code a game with multiple levels: 1) with a monkey eating 5 green apples; 2) with a monkey eating 5 orange apples, and with 3 monkey friends.
code
#lang healer-zoo-enemies (start monkey ((apple green 5))) (start monkey ((apple orange 5)) ((monkey 3)))
In Ratchet:
6.2 Healer Enemies 007 Kata
read
Code a game with multiple levels: 1) with an orange monkey eating 8 bananas, and with elephant friends; 2) with a red monkey eating 2 bananas, and with 3 elephant friends, and with elephant enemies.
code
#lang healer-zoo-enemies (start (monkey orange) ((banana 8)) (elephant)) (start (monkey red) ((banana 2)) ((elephant 3)) (elephant))
In Ratchet:
6.3 Healer Enemies 008 Kata
read
Code a game with multiple levels: 1) with a hippo eating 2 red hippoes, and with 3 orange hippo friends, and with yellow hippo enemies; 2) with an apple eating 2 blue apples, and with 3 green apple friends, and with 4 purple apple enemies.
code
#lang healer-zoo-enemies (start hippo ((hippo red 2)) ((hippo orange 3)) ((hippo yellow))) (start apple ((apple blue 2)) ((apple green 3)) ((apple purple 4)))
In Ratchet:
6.4 Healer Enemies 009 Kata
read
Code a game with multiple levels: 1) with a kangaroo eating 2 orange bananas; 2) with a monkey eating fishes, and with 4 green elephant friends; 3) with an elephant eating tomatoes, and with penguin friends, and with 3 red hippo enemies.
code
#lang healer-zoo-enemies (start kangaroo ((banana orange 2))) (start monkey (fish) ((elephant green 4))) (start elephant (tomato) (penguin) ((hippo red 3)))
In Ratchet:
6.5 Healer Enemies 010 Kata
read
Code a game with multiple levels: 1) with a hippo eating 2 apples; 2) with a hippo eating blue bananas, and with 4 green elephant friends; 3) with a hippo eating tomatoes, and with 2 penguin friends, and with 3 red hippo enemies.
code
#lang healer-zoo-enemies (start hippo ((apple 2))) (start hippo ((banana blue)) ((elephant green 4))) (start hippo (tomato) ((penguin 2)) ((hippo red 3)))
In Ratchet: