Basic Simulation -- Stacking Blocks -- Template

by phonner
  scripts
  sprites
See inside
Instructions

Your task is to create a simulation that drops square blocks that land on the red, or on each other, repeatedly until a stack of blocks touches the blue line.

That is, a block should

(1) Start a random position (See Reset)
(2) "Fall" until either it hits red or another block
(3) Once it hits red or another block, the block should reset and fall again, or a new block should fall from a random position.
(4) The total number of blocks used before the blue line is hit should be recorded in Number_of_Blocks

Notes and Credits

Shared: 2 Aug 2016 Modified: 2 Aug 2016
Favorite this project 0
Love this project 0
Total views 9
View the remix tree  1
  
More projects by phonner