Skip to content

Commit dc53fa2

Browse files
added Firefighters tutorial README
1 parent dfed85a commit dc53fa2

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Entities Tutorial: Firefighters
2+
3+
A fire spreads across a field, and bots form bucket brigade lines to douse the fire.
4+
5+
![](Common/firefighters.png)
6+
7+
# Step 1: Spawning
8+
9+
This step sets up the core data and spawns the field, the bots, the ponds of water around the field, and the buckets on the field.
10+
11+
# Step 2: Fire simulation
12+
13+
This step adds code to spread the fire. Three solutions are demonstrated:
14+
15+
- A single-threaded solution running on the main thread.
16+
- A single-threaded solution running in a job.
17+
- A parallel-threaded solution running in a job.
18+
19+
# Step 3: Bot behaviour
20+
21+
This step adds behiour to the bots, who are organized into teams. Each team forms a line between a pond and the closest fire. A bucket is filled at the pond and then passed up the line.

0 commit comments

Comments
 (0)