← All projects
EDUCATIONAL GAME · SPRING 2024

Garden Guardians

A text-based C game connected to UN Sustainable Development Goal 2: Zero Hunger.

My role
Game development
Language
C
Deliverable
Text-based educational game

The purpose

Players plant, water, and harvest crops in a game built around the goal of ending hunger.

Building the game

I used structs to represent crops, garden plots, and players. Each plot tracks a crop, water level, and growth progress. Dynamic memory supports the game’s garden and crop data.

The result

File input and output save scores between sessions.

Garden Guardians

Garden Guardians C source showing crop, garden plot, and player structs and garden initialization