Skip to content

Instantly share code, notes, and snippets.

@brine
Created May 5, 2020 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brine/6b2d4916f34c0dbe73a2c8b838598c07 to your computer and use it in GitHub Desktop.
Save brine/6b2d4916f34c0dbe73a2c8b838598c07 to your computer and use it in GitHub Desktop.
If a card is FaceUp, then all players will have visibility of that card.
If a card is FaceDown, then nobody can see the card.
Any player can peek at a facedown card to reveal its identity. The card will still show as face-down in piles or the table, but the hover preview will show the card's image. A peek icon appears on the card to show who has seen the card's identity
Piles can set the 'default' visibility for any card within it. The table is always visibility=Everyone
Piles can add players to the visibility list. Any player on that list is able to see the contents of that pile.
NEW: A player can add a spectator to the visible players list on a pile.
NEW: The peek icon is added to the pile info panel, showing who has visibility on that pile (similar to cards)
NEW: Remove individual card visibility settings. Cards are either FaceUp (everyone can see, card's front face is displayed), FaceDown (nobody can see, card identity is kept hidden, card's default back is shown). Peeking at a card reveals it to that player, revealing its identity but not changing its FaceDown state.
LOGISTICAL ISSUE: OCTGN currently treats Visibility=me as a special case, where the cards are faceup to 'me' but facedown and hidden to everyone else. This has weird effects on python scripts as a card's FaceUp status isn't consistent between players.
@BenMatteson
Copy link

BenMatteson commented May 5, 2020

NEW: Remove individual card visibility settings. Cards are either FaceUp (everyone can see, card's front face is displayed), FaceDown (nobody can see, card identity is kept hidden, card's default back is shown). Peeking at a card reveals it to that player, revealing its identity but not changing its FaceDown state.

abandoning faceup on a per-user basis means that cards in any kind of hand will be face down.
edit: I guess it could work out since it sounds like the plan is to keep this for piles?
so peeking only applies to cards that are face down in otherwise revealed areas, or any card in areas that are face down.
of note, this still presents big problems for a case that recently came up of games wanting to put face up cards in face down piles.

@BenMatteson
Copy link

an alternative would be that visibility is purely per-card, and pile visibility is just a default state for cards that are newly added to that pile (and could be optional?).

@brine
Copy link
Author

brine commented May 5, 2020

the goal was to make faceup/facedown status more relevant. If you make a card faceup in a hidden pile, that faceup status will override whatever existing visibility exists in that pile. A faceup card will ALWAYS be visible to everyone

@brine
Copy link
Author

brine commented May 5, 2020

with peek becominng the card-specific visibility setting for facedown cards

@BenMatteson
Copy link

BenMatteson commented May 5, 2020

so you'd be "peeking" at your own hand? and would that keep the face-down appearance currently used by peeking?
(edit: I mean, of course not, but I'm wondering how you're picturing this working)

@brine
Copy link
Author

brine commented May 5, 2020

yeah I can't figure out how to make the hand not look like a giant hack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment