delta/codecharacter-simulator-2022

Implement logger module

CaptainIRS opened this issue · 0 comments

  • Create a singleton class for logger.
  • Create helper macros to be used in other classes.

Reference: Singleton pattern

Log format:

INIT
TOWERS, n, (id, typeId, x, y, hp), (id, typeId, x, y, hp), …

TURN, t
MOVE, id, x, y
SHOOT, id, id, targetNewHp
SPAWN, id, typeId, x, y, hp
DEAD, id
PRINT, log
DESTRUCTION, %
COINS, c

END
ERRORS, …