►
Wandering around writing software
1
Robot World
2
Sudoku
►
1
Robot World
1.1
The Beginning
1.2
The World
1.3
The Code
1.4
Demo
►
1.3
The Code
1.3.1
Shared
1.3.2
Client
1.3.3
Server
▼
1.3.1
Shared
1.3.1.1
Location
1.3.1.2
Direction
1.3.1.3
Entity
1.3.1.4
Request
1.3.1.5
Occupant
1.3.1.6
Reply
8.14
contents
← prev
up
next →
1.3.1.6
Reply
🔗
Source code at
reply.rkt
A reply from the server to a player client contains a success indicator, the bot id from the request, its location, its cargo, if any, and a list of
nearby
entities.
(
struct
reply
(
success?
id
location
cargo
neighbors
)
#:prefab
)
contents
← prev
up
next →