Open timotree3 opened 3 years ago
in my mind, the behavior should be to only show the blank back for hypothetical cards, not real cards
meaning that:
(pseudocode)
const orderOfLastDrawnCard = ?; // Derived from globals.state.ongoingGame
if (card.order > orderOfLastDrawnCard) {
// Show blank card back
} else {
// Show normal, fully revealed card back
}
what does last drawn card mean? last drawn card on the turn where the hypothetical started? or last drawn card in the present?
const orderOfLastDrawnCard = ?; // Derived from globals.state.ongoingGame
meaning the last drawn card in the present, because globals.state.ongoingGame
is the present GameState
Well then that's already whats happening
no it isn't, what is currently happening is
(pseudocode)
const orderOfLastDrawnCard = ?; // Derived from globals.state.replay.states[turnHypoStarted]
if (card.order > orderOfLastDrawnCard) {
// Show blank card back
} else {
// Show normal, fully revealed card back
}
the "Derived from" part is different in the two code snippets
Read the original post again. I think you've got it wrong.
- Any drawn card that you've seen in the present game will have the "blank" back
- Any card that you haven't seen in the present game will have the "unknown/empathy" back.
This is what's currently happening as decribed in the OP and this is the same as your "proposal" with ongoingGame
oh i see
your screenshot isn't very good, here's a better one that showcases the bug: slot 1 is not known in the present slot 2 is known in the present
in "Hide Drawn Cards Mode" (the defualt):
in "Show Drawn Cards" mode:
can we write tests for this? probably not?
So it's not really "drawn cards", but a new thing like "Show cards in hand"? And then shared replay hypo will need toggle buttons for both of these features to avoid conflating them?
So it's not really "drawn cards", but a new thing like "Show cards in hand"?
right but you just combine those two things because we don't want to have a separate button for just that imo
This does not seem good.
Ideas: