Outbreak: Code Your Own Simulation

Welcome to Monster Town!

Monster Town was usually a happy and healthy place. The monsters of Monster town loved to wander around to visit their friends.

One day, one of the monsters started feeling sick. The monster had caught a virus! A virus is a tiny germ that can make you sick. The other monsters were not too worried. They kept visiting their friends.

Soon after, two more monsters got sick. It was the same virus! It seems they got the virus from their friend.

The virus slowly spread to other monsters who were nearby. The healthy monsters began to worry that they were all going to get sick. The sick monsters began to worry that they were going to give the virus to everyone else.

Stopping the spread

Fortunately, after studying the virus, the neighbors of Monster Town made an important discovery. They realized that they were less likely to spread the virus if they wore masks over their mouths. With face masks on, sick monsters were less likely to give the virus to healthy monsters.

What will happen next?

Today, you're going to write code to create and run your own simulation of the virus outbreak at Monster Town. A simulation is a computer model of a process or system. Learn to code and make predictions about what will happen to the neighbors of Monster Town.

  • How quickly will the virus spread?

  • Will everyone get sick?

  • How will face masks help?

When you're finished, share your simulation with others. Share your message about what you think we can do to help keep others healthy when a virus comes to town.