Jenna's Treasure Box Game

Use PHP SESSIONS to keep score and track rounds across page requests.

Game Directions

Welcome, matey! In this game, you will choose one of three treasure boxes each round. Each box may contain treasure, nothing at all, or a trap.

  • Treasure = +10 points
  • Empty Box = 0 points
  • Trap = -5 points
  • The game lasts 5 rounds

This program demonstrates how SESSION variables can store and update values from page to page.