-
Notifications
You must be signed in to change notification settings - Fork 1
Client
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
The client is written in Elm. See the client README for more information how to build the client.
Registered teams appear on a sidebar. For each team the following is shown.
- A toggle: This controls if the boids in this team are visible or not.
- Connection status: Signals if the brain-server of this team has a heartbeat.
- Team name: The name that the team registered
- Spawn boids: This button will conjure up more boids for this team in the simulation
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.
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.