Skip to content
Daan van Berkel edited this page Oct 27, 2021 · 2 revisions

This page documents the client. The documentation on the server is found elsewhere.

The client has the following main responsibilities, centered around visualization.

Visualizing

  • status of registered teams
  • current simulation

Technology

The client is written in Elm. See the client README for more information how to build the client.

Teams

Registered teams appear on a sidebar. For each team the following is shown.

  1. A toggle: This controls if the boids in this team are visible or not.
  2. Connection status: Signals if the brain-server of this team has a heartbeat.
  3. Team name: The name that the team registered
  4. Spawn boids: This button will conjure up more boids for this team in the simulation

Team Name

Note that the naming scheme used in the book encourages teams to come up with a name adhering to the following scheme:

color - city - animal

This is not without consequence. The boids in the flock of the team will adopt the color as chosen in the name.

Simulation

The main attraction for this workshop is the simulation of boids. This primary task is fullfilled by the client by drawing the boids as an SVG.

Clone this wiki locally