Digital Play-by-Mail Games: How to Make One on iPad
Digital play-by-mail games are turn-based games where each player takes a turn, sends it to the other players, and waits for the next move. The idea started with real mail: players posted their moves for chess and strategy games and waited days for a reply. Email and apps made it faster, and today the same structure powers asynchronous games where friends play one turn at a time.
You can design a play-by-mail-style game on iPad with hyperPad. This guide shows how to build the turn system first, as a pass-and-play game on one device, and what it takes to send turns between devices later.
What makes a play-by-mail game work
Every play-by-mail game, on paper or on a phone, has the same parts:
- A clear turn. Each player knows exactly what they can do before passing.
- A shared game state. The board, scores and resources after each move.
- A move record. A short description of what changed, which is what gets "mailed."
- A way to resolve moves. Rules that apply a move and check whether anyone has won.
Because players may wait between turns, each turn should be meaningful on its own. A good play-by-mail game gives every move a real decision.
The turn structure
| Phase | Player or game action | State to track |
|---|---|---|
| Start turn | Show whose turn it is | Active player |
| Choose action | Select a unit and a destination | Selected Object |
| Validate | Check whether the move is allowed | Range, occupancy and action status |
| Resolve | Move, collect or attack | Position, health, resources |
| End turn | Record the move and pass to the next player | Turn number, active player, move record |
Build a pass-and-play version first
1. Make a small board
Create one Scene with a simple grid, one unit for each player and one goal. Use placeholder Graphics. This first test is about turns, not art.
2. Store the active player
Use Set Attribute to store whose turn it is. Show it on screen so both players know who can move. Every action should check this Attribute before it changes the board.
3. Select and move one unit
Use Started Touching on a unit to select it. Reject the touch if the unit belongs to the other player or has already moved.
When the player picks a destination, check that it's in range, empty and on the board. Show a clear response for valid and invalid moves.
4. Record the move
Before ending the turn, store a short move record, such as "Player 1: unit A to square C4." Keep the latest records in a list the players can read. This is your "mail." It lets the next player see what changed while they were away from the iPad.
5. End the turn
An End Turn button can clear the selection, switch the active-player Attribute, increase the turn number and show a "Pass to Player 2" screen. That screen hides the board so the next player can take the iPad without seeing anything they shouldn't.
6. Add a win condition
Pick one visible goal, such as reaching a target square or collecting three resources. When it's met, stop input, show the winner and offer a restart.
Test the rules that matter
Try to break your game:
- move twice in one turn
- select an opponent's unit
- move onto an occupied space
- end the turn without moving
- keep playing after a win
Each of these should be blocked by your rules.
Sending turns between devices
A true digital play-by-mail game stores each move outside the device and delivers it to the other player. hyperPad includes HTTP and socket support, so a Project can talk to a server. You would need a server you control that stores the game state, identifies each player and accepts one move at a time.
That's an advanced step. Finish the pass-and-play version first. Your move record is already the data you'd send, so the work carries over.
Your next step
Build the two-unit board this week and play ten turns with a friend on one iPad. Then Publish it to the hyperPad Hub and ask players whether each turn felt like a real decision. For more on boards and turns, read how to make a digital board game on iPad.
