Timo
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Hat with finesses (for 4p+) ## Introduction One of the key ideas of [Reactor](/@hanab/reactor) is that we can split up two pieces of information in our [Hat Guessing](https://github.com/hanabi/hanabi.github.io/blob/main/misc/hat-guessing.md) clues: the sum of the slots of the actions and the types of actions. For example. in a 3p game, a reactive color clue calls for 1 play and 1 discard and a reactive number clue calls for 2 plays. In general, how much information about the types of actions do we need to encode? Without finesses, we just need to encode whether the number of plays is odd or even, because each player's decision is only whether to discard/clue or play which adds 0 or 1 to the total number of plays. The problem is that with finesses, Bob has to decide the actions of both himself and the player with the one-away card: either they both discard/clue, Bob plays and the other discards/clues, or they both play (adding 0, 1, or 2 to the total number of plays). Adding 0 or 2 have the same effect on the parity (oddness/evenness) of the total, so Bob doesn't know which to decide. Instead of communicating the parity of the number of plays (which is the same as the number [mod](https://en.wikipedia.org/wiki/Modular_arithmetic) 2), we can communicate the number mod 3, that way adding 0 and 2 have different effects on the total. ## Discard slot 4 = lock (4p-specific) In a 4-player game, if a player has no plays or safe discards, we can assign them a "discard slot 4" instruction. When a player receives such an instruction, they know that it actually means to give a clue (they are basically locked). Unfortunately, this means we have no way of telling slot 4 to discard. ## Discard slot 5 = lock (5p-specific) In a 5-player game, if a player has no plays or safe discards, we can assign them a "discard slot 5" instruction (in reality, they have no slot 5). This means that all sums of slots are taken mod 5 instead of mod 4. ## Tables Another nice benefit of splitting clue meanings into two different numbers is that we can use a much easier to remember method for determining what clues mean that Hat Guessing (where you have to consult a document on every turn). The number of plays equals the number of players away you're cluing: | person clued | # plays (mod 3) | | ------------ | --------------- | | Bob | 1 (or 4) | | Cathy | 2 | | Donald | 3 (or 0) | The sum of slots to play or discard is determined by the type of clue given: | type of clue | sum of slots (mod 4 in 4p, mod 5 in 5p) | | -------------------- | --------------------------------------- | | number not on newest | 1 | | number on newest | 2 | | color on newest | 3 | | color not on newest | 4 | These types of clues are picked because it's very likely that all four are available in No Variant. The assignment of clue types to numbers here is currently pretty arbitrary, but it could be optimized in the future because certain sums of slots are actually more likely than others. (i.e. newer cards are more likely to be playable or trash) In a 5-player game, there is also a fake "slot 5", and the sum of slots is added mod 5 instead of mod 4. If the sum of slots is 5, then you give a clue to Emily, and the type of clue determines the number of plays instead of the sum of slots. | person clued | type of clue | # plays (mod 3) | sum of slots (mod 5) | | ------------ | -------------------- | --------------- | -------------------- | | Emily | number not on newest | 1 (or 4) | 5 | | Emily | number on newest | 2 | 5 | | Emily | color on newest | 3 (or 0) | 5 | | Emily | color not on newest | 4 (or 1) | 5 | ## Instruction priority 1. Play leftmost playable 2. Discard leftmost trash / Play one-away (it will be clear which one due to #plays) 3. Lock ## Deciding which one-away card to play into If there are multiple one-away cards, perhaps even in different player's hands, how can a responding player know which one they're supposed to play into, and therefore which slot they're supposed to play? Current policy chosen for simplicity: The player playing into the finesse plays the leftmost slot which would work ## Future ideas - Extend to double finesses by communicating the number of plays mod 4 - Have the undiscardable slot in 4p be slot 2 or 3 so that it moves when a card plays - Have the undiscardable slot in 4p be a slot that has known trash, a known play, or a known critical when one exists - Refined one-away targeting policy: - Target the player who had no trash cards in hand? - Prefer "prompts" where you're playing a clued card which matches the one-away card? - Target the closest/furthest away player? - Players always respond in turn order to promote tempo: - When Bob already has a play and Cathy has one-away cards, there are three possibilities, depending on the number of plays between the two: - plays = 0: Bob will play the already-gotten card and note down a discard for later. Cathy will note down a discard - In this situation, despite Bob being the first one who could have responded to the clue, Cathy could still be the First Responder in the sense that Alice could instruct her to discard anything she wanted. - plays = 1: Bob will play the already-gotten card and note down a discard for later. Cathy will play a card on top of Bob's already-gotten card - This is the reverse of the normal configuration, where Bob would assume that Cathy is discarding - plays = 2: Bob will play a new card and Cathy will play a card on top of it ## Appendix ### Combined tables (for resemblance to traditional hat) 4-player: | person clued | # plays (mod 3) | type of clue | sum of slots (mod 4) | | ------------ | --------------- | -------------------- | -------------------- | | Bob | 1 | number not on newest | 1 (5) | | Bob | 1 | number on newest | 2 (6) | | Bob | 1 | color on newest | 3 (7) | | Bob | 1 | color not on newest | 4 (8) | | Cathy | 2 | number not on newest | 1 (5) | | Cathy | 2 | number on newest | 2 (6) | | Cathy | 2 | color on newest | 3 (7) | | Cathy | 2 | color not on newest | 4 (8) | | Donald | 3 (0) | number not on newest | 1 (5) | | Donald | 3 (0) | number on newest | 2 (6) | | Donald | 3 (0) | color on newest | 3 (7) | | Donald | 3 (0) | color not on newest | 4 (8) | 5-player: | person clued | # plays (mod 3) | type of clue | sum of slots (mod 5) | | ------------ | --------------- | -------------------- | -------------------- | | Bob | 1 (4) | number not on newest | 1 (6) | | Bob | 1 (4) | number on newest | 2 (7) | | Bob | 1 (4) | color on newest | 3 (8) | | Bob | 1 (4) | color not on newest | 4 (9) | | Cathy | 2 | number not on newest | 1 (6) | | Cathy | 2 | number on newest | 2 (7) | | Cathy | 2 | color on newest | 3 (8) | | Cathy | 2 | color not on newest | 4 (9) | | Donald | 3 (0) | number not on newest | 1 (6) | | Donald | 3 (0) | number on newest | 2 (7) | | Donald | 3 (0) | color on newest | 3 (8) | | Donald | 3 (0) | color not on newest | 4 (9) | | Emily | 1 (4) | number not on newest | 5 (10) | | Emily | 2 | number on newest | 5 (10) | | Emily | 3 (0) | color on newest | 5 (10) | | Emily | 4 (1) | color not on newest | 5 (10) | ### Replays First 5 wins are in! (Plus 13 0s :P) - [4p No Variant](https://hanab.live/replay/910328) - [4p No Variant](https://hanab.live/replay/910228) - [4p No Variant](https://hanab.live/replay/910220) - [4p No Variant](https://hanab.live/replay/910196) - [5p No Variant](https://hanab.live/replay/910164) - [5p No Variant](https://hanab.live/replay/910069) - Explanation TODO ### Hypotheticals Here is a hypothetical game created before having played the system: - [5p No Variant](https://hanab.live/shared-replay-json/515tvamnpihkdcarbdaf-wgqsqiwucklgpbsuymlx-ffropuxhejnkv,03tbaf-aiapaqgcbgbvanatlbay-azamgcaba2obaoa1adah-wbawaxa5aAala7ldaaae-bFbGkdbHaEaJaK,0) - Turn 1: 4 plays. 3 + 4 + 1 + 4 = 12 = 2 mod 5 - Turn 6: 2 plays. 3 + 1 + 3 + 2 = 9 = 4 mod 5 - Turn 8: Cathy has a known trash and chooses to discard and let Alice give a clue - Turn 10: Emily could give a clue but chooses to play and let Alice give a clue - Turn 11: 4 plays. 1 + 1 + 4 + 1 = 7 = 2 mod 5 - Turn 15: 3 plays. 3 + 1 + 1 + 4 = 9 = 4 mod 5 - Turn 18: Finally a finesse! Donald and Emily already have r4 and g2 to play, so they will respond after Alice and Bob. Cathy wants to give a finesse on Bob's y3 and Donald's y4. There will be no ambiguity on Bob's turn as to which one-away card he is playing into because y4 is the only one, so the finesse will definitely work. Cathy clues 4 plays. 2 + 3 + 3 + 2 = 10 = 5 mod 5 - Turn 23: Donald and Emily already have y4 and p3 to play, so they will respond after Alice and Bob. Cathy wants to give a finesse on Bob's p4 and Donald's p5. There will again be no ambiguity. Cathy clues 3 plays. 2 + 1 + 1 + 1 = 5 = 5 mod 5 - Turn 28: Cathy might as well try to play a r5 instead of discarding - Turn 30: 2 plays. 4 + 4 + 1 + 1 = 10 = 5 mod 5 - Turn 35: 3 plays. 1 + 2 + 1 + 1 = 5 = 5 mod 5 ## Puzzles What turn 1 clues can Alice give to maximize plays and prevent BDRs? - [(A)](https://hanab.live/shared-replay-json/415jkgtnjpi0da3hbyqc-rgrblfdaokxzavpmcwih-qknpsmsffe12l,04o,1-472) :::spoiler Analysis [will add once discord conversation is quiet] ::: --- - [(B)](https://hanab.live/shared-replay-json/415jkgtpuniad03hbyqc-rgrblfdaokxzavpmcwih-qknpsmsffe12l,04o,1-472) :::spoiler Analysis [will add once discord conversation is quiet] ::: ---

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully