Project lead, programmerAdvanced Game Development, CornellFeb – Jun 2025

Mah’s Jong

A two-player race to build a mahjong hand, made by a team of nine students in C++ on the CUGL framework. As project lead I set each sprint’s tasks and priorities with the software lead, and I built several of the game’s scenes and systems.

Showcase Rated one of the top games by players at the GDIAC spring 2025 showcase; 100+ beta downloads

Two players race to complete a mahjong hand.

A full hand is four sets of three and a pair. Each turn a player draws from the pile or the discard, then discards. Taking the discard means revealing a permanent set. The pile is a visible layered grid, and eight zodiac “Celestial” tiles help a player or disrupt their opponent.

The pile and a full hand, drawn
The pile, face up6❘❘✦2●7万6❘❘✦4●✦1❘❘8万4●✦ Celestial tile
2❘❘3❘❘4❘❘Set of three5●5●5●Set of three7万8万9万Set of three1●2●3●Set of three6万6万Pair
A full hand: four sets and a pair
Taking the discard: the set it completes is shown for good
Discard6万The opponent’s last discard
Your hand2❘❘3❘❘6万6万9●Two tiles that the discard would complete
Shown set6万6万6万Face up for the rest of the game

Every task in a sprint had an owner, a due date and a priority.

The team was nine programmers and designers, with a software lead, a design lead and a UX lead. The software lead and I decided together what each sprint would deliver and in what order. I set every task’s owner, due date, expected time and priority from 1 to 5, and wrote the detailed task descriptions the team worked from.

One sprint, by priority: the plan for the closed beta
5prioritySoftware lead · Apr 11Match model for the shared state of a gameProgrammer · Apr 13Finish the animation controller, add special-tile animationsProgrammer · Apr 11Finish the audio controller, add the first soundsProgrammer · Apr 17Special tile: rearrange a row, with the designer’s UIMe · Apr 14Load every new scene and its UI into the gameDesign lead · Apr 9Design the action tile assetsUX lead · Apr 11Export the tutorial page for the programmers
4priorityUX lead · Apr 9Tutorial page in FigmaDesigner · Apr 11Rework the gameplay scene from feedbackProgrammer · Apr 18Interface for drawing any tile
3priorityDesigner · Apr 10Refine details in FigmaProgrammer · Apr 17Find the remaining music
2priorityDesign lead · Apr 10Component sheet for the style guideDesign lead · Apr 8Resize the grandma icon

I also ran the handoff between the designers and the programmers. Designers built each screen in Figma and exported it; programmers loaded it into the game. In that sprint, loading every new scene was my own top-priority task.

The team turned a scoring game against a boss into a one-on-one race.

The first rules had draw, play and score phases, a shop, and a “Grandma” boss with hit points. The team’s revised design dropped the scoring and the boss. I removed the grandma tiles and the score display from the build.

BeforeThe first rules: four phases a turn, points for sets, a boss to beat
  1. Draw
  2. Play
  3. Score
  4. Shop
One turn, scoredThree of a kind+3Three of a kind+3Combo+3Pair+2Turn total+11
“Grandma” · boss hit pointsPoints beat the boss; no opponent
AfterWhat was dropped, and what the game became
First rulesScore phaseShop“Grandma” boss with hit points
Revised designYou2❘❘3❘❘4❘❘5●5●Opponent7万8万9万First full hand wins

Special tiles became Celestial tiles, with three roles.

The designers grouped the eight tiles as Support, Risky and Disruptor: help yourself, gamble, or get in the opponent’s way. I took part in brainstorming the early action-tile designs and built the animations that show an opponent’s Celestial tile taking effect.

AfterThree roles, with one tile from each in use
✦Support
  • Rat’s Gambit: draw any tile from the pile
  • Pig’s Fortune: draw any tile from the discard
  • Dragon’s Dance: rearrange a row of the pile
Dragon’s Dance6❘❘✦4●✦Row rearranged
✦Risky
  • Monkey’s Bargain: trade one tile with the opponent
  • Rooster’s Crow: shuffle the pile
Monkey’s BargainYou2❘❘3❘❘9万Opponent7万8万4❘❘One tile traded: both sets complete
✦Disruptor
  • Ox’s Burden: two random tiles can’t be used in a set
  • Rabbit’s Leap: change the rank of an opponent’s tile
  • Snake’s Molt: change the suit of an opponent’s tile
Snake’s MoltOpponent7万8万9万Suit changed: the set is broken

The game ends each turn itself and shows what the player can do next.

I first built an end-turn button, then limited it to the moments a turn could end, then replaced it with automatic turn ending and on-screen guides for each action.

AfterThe guide for discarding, then the turn passes
First buildEnd turn
FinalYouOpponentDrag here to discard9万2❘❘3❘❘4❘❘5●5●Turn ends on its own

I also built the turn timer, which ends a turn when it runs out, and lengthened it from 30 to 45 seconds. A teammate later reworked the timers.

The turn timer
30 seconds45 seconds0:45YouOpponentTime is up: the turn ends

The tutorial became a single-player scene you play through.

A teammate built the first tutorial. I rebuilt it with another programmer as a scene the player plays through, from a designer’s Figma layout.

AfterFrom watched once to played through
First tutorial▶Plays once at start-up
Rebuilt: five lessons, each one played
  1. 6❘❘2●7万Draw from the pile
  2. 5●Draw the discarded tile
  3. 9万Drag to discard
  4. 5●5●5●Play a set
  5. ✦Play a Celestial tile
A single-player scene the player plays through

Project lead, and a programmer on the game’s scenes.

As project lead I set the team’s tasks and priorities with the software lead, wrote the detailed task descriptions, and ran the handoff between the designers and the programmers. In code I built the discard pile and its interface; the settings, game-over, info and help scenes; and the AnimatedNode class. I started the animation controller and the tutorial scene, which teammates and I finished together.

The game’s screens and systems, and the ones I built
Screens
LandingMenuHost and clientGameDiscard pilePauseSettingsInfoHelpGame overTutorial
Systems
AnimatedNode classAnimation controller
Built by meStarted by me, finished with teammates