Magic Clicks
Just like put_brick()
, we can define some callback functions to build a lot of stuff:
# callback functions
def put_brick(p):
block(p, 'brick')
def put_wall(p):
def put_cube(p):
def put_flower(p):
wall
cube
flower
growing grain