Flagman project banner
Overview

A memory game with personality

Flagman was my Grade 12 computer science final project. The goal was to recreate the classic Flagman memory game, where the player watches a sequence of flag directions and then repeats the pattern using the arrow keys.

For my version, I added a Nintendo-inspired theme using ASCII art characters, custom sounds, music, difficulty selection, lives, scoring, and a simple leaderboard. It was a fun project because it combined programming logic with a lot of small presentation details.

How it worked

After selecting a difficulty, the game displays a character sprite that shows a sequence of flag directions. The player has to memorize the pattern, then repeat it using the arrow keys. If the player enters the wrong direction, they lose a life and the sequence is shown again. Each difficulty changes the character, the number of new flags added at a time, and how challenging the memory sequence becomes. Once the player loses all lives, the run ends and the score is added to the leaderboard.

Project Screenshots

Menus, difficulty selection, leaderboard, and gameplay screens from the Flagman project.

What the Project Included

Memory-Based Gameplay

The game shows a sequence of flag directions, then asks the player to repeat the pattern using the arrow keys. Each correct round increases the score and continues the sequence.

Difficulty Levels

The game includes five difficulty levels: Easy, Medium, Hard, Difficult, and Impossible. Each one uses a different character sprite and adds more new flags to memorize at a time.

Sounds, Music, and Leaderboard

I added custom sounds and music to make the game feel more complete, along with a simple leaderboard that saved and displayed scores from previous attempts.

Looking back

Small enough to finish, big enough to enjoy

Flagman helped me practice game loops, user input, scoring, lives, difficulty settings, file-based score storage, and sequence generation. It also gave me more experience making a program feel structured from the main menu to the final game-over state.

Looking back, Flagman was a simple but really fun project. I liked that it was small enough to finish, but still had room for personality through the different characters, music, menus, and difficulty levels.