On this page:
2.1 Image To Code Kata
2.2 Beside Kata
2.3 Beside Kata
2.4 Above Kata

2 Day 2 – Beside & Above

REVIEW Core Values

2.1 Image To Code Kata

read
Write the simplest code possible to make this shape:
image
(Note: This shape is 60 pixels wide and 60 pixels tall)
code
#lang racket
(require 2htdp/image)
 
(circle 30 'solid 'red)

2.2 Beside Kata

read
Write the simplest code possible to make this shape:
image
(Note: This shape is 100 pixels wide and 50 pixels tall)
code
#lang racket
(require 2htdp/image)
 
(beside
  (square 50 'solid 'blue)
  (circle 25 'solid 'green))

2.3 Beside Kata

read
Write the simplest code possible to make this shape:
image
(Note: This shape is 80 pixels wide and 40 pixels tall)
code
#lang racket
(require 2htdp/image)
 
(beside
  (circle 20 'solid 'red)
  (circle 20 'solid 'red))

2.4 Above Kata

read
Write the simplest code possible to make this shape:
image
(Note: This shape is 80 pixels wide and 113 pixels tall)
code
#lang racket
(require 2htdp/image)
 
(above
  (triangle 50 'solid 'blue)
  (triangle 80 'solid 'purple))