Single-player Game Tutorial

In a single-player game, each player sees only his or her own decisions and results. The decisions and results of other players are hidden. Only a run’s leaders can access the decisions and results of all the run’s players.

This tutorial will walk you through the creation of the single-player Calc game. This game implements a model that takes a number and adds it to the current total. The game has a single Play phase and does not define any player roles. This project, though basic, will demonstrate how the various pieces of Simpl interact to provide a platform upon which single-player games can be created.

The foundation of Simpl is the Games API Service. This service provides REST API endpoints that allow a game to store information about its current state in the Simpl database.

The Model Service provides the mathematical component of a Simpl game, it interacts with the Games API and provides messaging to the Frontend UI regarding game state. More information can be found here.

Start by running the Simpl Games API Service following the getting started instructions.

Next, we’ll implement our Model Service providing the mathematical model for Calc. Last, we’ll build our Frontend’s user-facing pieces.

  1. Build the Single-player Game Model Service
  2. Build the Single-player Game Frontend