Processing – High Card Assignment – Post 1

For this assignment we have been asked to create a program that randomly select 2 of the 13 images and drawing them to screen. It should then write code that assesses whether the second card drawn is higher, lower or the same as the first. Based on the result, beneath the two images, using a font, you should write either:

• The second card is higher
• The second card is lower
• The second card is the same

So far I have written code that places the images and text on screen. This is in preparation for learning the code needed to create a random generator.

I have also annotated the code since.
High Card - Start


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s