Take turns from your own phones
One player creates a room and shares its code or its link; friends join it and wait in a ready-made lobby until the host starts. Then each takes their turn, and everyone sees every move. The lobby, the turns, and the results come with the module, so asking for them costs your AI almost nothing.
Create a room. Here a computer player, Robo, joins it, as a friend would with the room's code.
Make it a game for friends on their own phones: they take turns adding 1, 2, or 3, and whoever reaches 21 wins.
View code
const mp = new Multiplayer(game, { mode: "turns", maxPlayers: 4 });
const room = await mp.lobby();
await room.update({ state: { total: 21 }, turn: "next" });