Add logger device #39
Labels
C-Low Hanging Fruit
Ideal issue for new contributors.
G-Design
An issue having to do with game design.
S-Nice to have
The bug fix or feature would be nice but doesn't currently have much negative impact.
T-UI
Involves the user interface.
We should add a new kind of device (a
logger
, recipe: 1 log) which allows logging messages via alog
command (i.e. there will be alog
capability, provided by alogger
, and required to execute thelog
command). This will also be the mechanism by which uncaught exceptions are reported; on any robot without a logger, such uncaught exceptions will just be silently discarded. See this comment inSwarm.Game.Step
.This will require adding a message queue field to the
Robot
record type. We should also get rid of the global message queue in theGameState
.We'll have to rethink what the
say
command does---perhaps it should broadcast a message that will be added to the log of nearby robots?The text was updated successfully, but these errors were encountered: