Skip to main content

Every virtual pet game runs on code. In this pack, you write that code yourself.

Five challenges that take you from naming your pet to building a full evolution system. Along the way, you’ll learn variables, math, text manipulation, and conditional logic.

The Challenges

Name Your Pet — Store your pet’s name in a variable and print a welcome message. Simple text joining: “Welcome, Pixel!” You’ve just created your first piece of game state.

Feed Time — Your pet starts at 50 hunger. Feed it and print the new hunger level. Variables that change over time — that’s how every game tracks stats.

Level Up — Calculate your pet’s level based on XP. Use math blocks to divide experience points by a threshold. Integer math and the building blocks of progression systems.

Pet Stats — Build a full stat card. Name, level, hunger, happiness — all stored in variables, all printed in a formatted display. This is how real games manage character data.

Evolution — The advanced challenge. Based on your pet’s level, it evolves into a different form. IF level is above 10, evolve. ELSE, keep training. Conditionals decide your pet’s fate.

What You’ll Learn

This pack is really about state management — the idea that your program remembers things and those things change over time. A pet’s hunger goes down. Its level goes up. Its name stays the same.

Every game, every app, every website works this way. Data changes. Your code responds. Pet Simulator teaches that concept through something you care about — keeping a virtual creature alive and growing.

Five challenges. One pet. Infinite evolution potential.