From: Ian Jackson Date: Tue, 2 Mar 2021 22:37:38 +0000 (+0000) Subject: hidden: a wip comment X-Git-Tag: otter-0.4.0~251 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=be476225af1c1542ab1044e4fd5c8eec550ba729;p=otter.git hidden: a wip comment Signed-off-by: Ian Jackson --- diff --git a/src/hidden.rs b/src/hidden.rs index a17c9d22..313cd180 100644 --- a/src/hidden.rs +++ b/src/hidden.rs @@ -720,6 +720,31 @@ mod recompute { _goccults: &mut GameOccults, _ipieces: &IPieces) -> Implemented { dbg!(&self.outdated); // xxx + + // for each occultation + + // check to see if we have any views that are scrambled or + // displaced or invisible (we must do invisible too, so that + // when they reappear the ids have been permuted) + // + // err won't we always? + // + // choose a single permutation of the pieces in + // the Occultation::pieces map, and put the corresponding + // numbers in there + // + // somehow make the per player id maps permute the same way + // so we have all the pieces and their current visible piece ids + // get all the visible piece ids, sort them, then permute them + // then assign them like that + // + // when we are done, displaced sees + // but how do we send an update? + // when one is taken out of the hand, leaves a gap? + // does another one come in ? + // xxx + + Implemented { } } }