aia-file

Coin Flip

by
published on

I made a little tutorial based on an old one i found on the internet 

http://www.cs.trincoll.edu/~ram/cpsc110/tutorials/coinflip/hw-coinflip.html 11

I used the following images:

 

Made a design:

 

 

Added some blocks:

The button click block starts and stops the rotation of the images, gets a random number for one of the sides of the coin, starts and stops the clock and tells which side is choosen.  

The clock timer block just shows the different images as a button image. 

DOWNLOAD THE AIA-FILE

TIP:

You can use you own currency. All you have to do is turn an animated gif into seperate png-files, for example with this website https://ezgif.com/split and adjust the filenames and number of frames.