nathanj / spirit-island-pbp

Spirit Island PBP Helper
4 stars 7 forks source link

Serpent tracking absorbed spirits #64

Open TheOriginalSoni opened 1 month ago

TheOriginalSoni commented 1 month ago

Currently serpent just can track how many absorbed presences are there (on left side of mat) but not which spirits they belong to. Tracking both is very useful information

samsullivan commented 1 month ago

First thought: this can be done just like element tracking. But, we have 9 possible presence colors compared to 8 elements.

We could allow for these extra colors, but that would limit us to only tracking 7 absorbed/spirit instead of up to 15. In theory, it sounds like that limitation should be okay? But, there could be some edge cases.

Maybe we still do this limitation of tracking absorbed presence in 3 bits for up to 7 and then we can fit 10 colors -- right now there are only 9 colors in the PBP, so the 10th could be an "edge case overflow" spot :shrug:

samsullivan commented 1 month ago
image
petertseng commented 1 month ago

(just preserving an idea I sent elsewhere) with nine players and serpent being unable to absorb itself, we could get away with 4 bits * 8 other players.

Not yet decided what to do if we ever start supporting game sizes > 9 players, but that may be something to figure out later. If there's nothing else. PositiveBigIntegerField could work I suppose.