Hey, thanks for the new release! I just went through its diff and want to clarify some of the changes. Unfortunately I don’t yet have a bot with which to test the properly so I might have this all wrong
I see in 2023-Cy-Fi/CyFiEngine.cs at ebf159cb845114037f5cfb8a3e0205e532c47129 · EntelectChallenge/2023-Cy-Fi · GitHub that when a player advances a level, all the other bots have their points incremented by 5 * collected
(L228). Additionally, the bot that advanced a level has its score incremented twice (first time, second time) (although I guess this would be a nop since collected would be set to 0?). Finally in EndGame the players are ranked according to score. Does this work out to first at level 4 == winner?
Next, in 2023-Cy-Fi/CyFiEngine.cs at ebf159cb845114037f5cfb8a3e0205e532c47129 · EntelectChallenge/2023-Cy-Fi · GitHub it looks like the command queue is cleared on each tick, but as only three commands are processed per tick (still not sure why? is it meant to be an extra game mechanic?) it means that the last command will be cleared before being processed in the next tick, or am I missing something?
EDIT: super stoked that a logger was added - just a heads up of something a bit bizarre, looks like the logger’s generated json is missing a ]
at the end of the file.
~/repos/ec/logs $ jq . 23-05-12-T2058logging.json
parse error: Unfinished JSON term at EOF at line 1, column 824037
~/repos/ec/logs $ echo "]" >> 23-05-12-T2058logging.json
~/repos/ec/logs $ jq . 23-05-12-T2058logging.json | tail
},
"CurrentLevel": 0,
"Id": "130ceb9e-2db2-4d47-bbd0-00dd7c585011",
"NickName": "BestNicknameEver",
"ConnectionId": "AL67bnohFlBto3bGe2dN2w",
"TotalPoints": 0
}
]
}
]
EDIT 2: I’m starting to suspect that the missing ]
is because I’m cancelling the game early, and would’ve been added if the game as been completed so please ignore if that’s the case
EDIT 3: Looks like the logger is producing mangled json sometimes An excerpt from my logs:
...","TotalPoints":0}]}[{"Tick":0,"Levels":...
As you can see there is a comma missing between the "TotalPoints":0}]}
and {"Tick":0
, and there’s a [
instead