Expecting }, found 'else'

Hello,

Please format your code as a courtesy to everyone:
https://discourse.processing.org/faq#format-your-code

This is your other related post.

There are lots of resources here:

You have many errors (underlined in red):

You have variables that were not declared.
Discussed here:

You did not use random correctly:

:)

2 Likes