On this page:
5.1 Healer Enemies 001 Kata
5.2 Healer Enemies 002 Kata
5.3 Healer Enemies 003 Kata
5.4 Healer Enemies 004 Kata
5.5 Healer Enemies 005 Kata

5 Enemies Katas

5.1 Healer Enemies 001 Kata

read
Code a game with a llama eating 5 apples, and with 5 pig friends, and with pig enemies.
code
#lang healer-animal-enemies
 
(start llama ((apple 5)) ((pig 5)) (pig))
In Ratchet:
image

5.2 Healer Enemies 002 Kata

read
Code a game with a [choose-your-own-sprite] eating green kiwis, and with 2 dog friends, and with 3 dog enemies.
code
#lang healer-animal-enemies
 
(start rand ((kiwi green)) ((dog 2)) ((dog 3)))
In Ratchet:
image

5.3 Healer Enemies 003 Kata

read
Code a game with a cow eating purple strawberries, and with 5 kiwi friends, and with grapes enemies.
code
#lang healer-animal-enemies
 
(start
  cow
  ((strawberry purple))
  ((kiwi 5))
  (grapes))
In Ratchet:
image

5.4 Healer Enemies 004 Kata

read
Code a game with an apple eating 5 orange kiwis and 5 blue strawberries, and with grapes and apple friends, and with 3 red kiwi enemies.
code
#lang healer-animal-enemies
 
(start
  apple
  ((kiwi orange 5) (strawberry blue 5))
  (grapes apple)
  ((kiwi red 3)))
In Ratchet:
image

5.5 Healer Enemies 005 Kata

read
Code a game with a [choose-your-own-sprite] eating 5 yellow apples, and with 5 blue apple friends, and with 5 green apple enemies.
code
#lang healer-animal-enemies
 
(start
  rand
  ((apple yellow 5))
  ((apple blue 5))
  ((apple green 5)))
In Ratchet:
image