Posted: Thu Sep 24
Due: Friday 9/25 10:00am
Submission name: w07_fizzbuzz
Write a processing program withe the following features:
This program will play out the game fizzbuzz by displaying a number or the appropriate text.
- Global Variables:
fizz,buzz,count(allint)
setup- Set the screen size to 300x300.
- Set the
frameRateto 30fps. - Perform any functions needed to set your text defaults (see below for more info).
- Initialize your global variables:
fizzshould be3,buzzshould be5,countshould be0.
draw- Clear the screen.
- Increase
countby one twice a second. - Display:
- FizzBuzz! if
countis divisible by bothfizzandbuzz. - Fizz if
countis divisible by onlyfizz. - Buzz if
countis divisible by onlybuzz. countin any other case.
- FizzBuzz! if
- In order to show text or
countto the screen, you should look at the following functions:
Of course, you can always try to jazz it up
Reference Image:
