Role and Odds calculator

Discussion in 'TTT Discussion' started by Cereal KiIler, May 8, 2018.

  1. Cereal KiIler

    Cereal KiIler gib banan VIP

    Hey Everyone!
    I was a little bored today so I created this simple calculator.

    Basically what you need to do is to input the number of players at the start of the round, and then the program will calculate the table's values using a set of simple formulas.

    Don't be afraid of all those code lines, they will magically disappear once you open this in your web browser.
    Windows will usually open the HTML file by default with your web browser, but if that's not the case, just open it manually with your web browser.

    I might update this program in the future, but for now, feel free to write down your opinions, thoughts, comments and suggestions for this program and ideas for other programs as well.
     
    Last edited: May 11, 2018
    • Like Like x 1
    • Winner Winner x 1
    • Informative Informative x 1
  2. TrinityBlade ⚔️

    TrinityBlade ⚔️ They question the king upon leaving. VIP

    Only problem with this is if you input 1, 2 or 3, the chances of "traitor" are 0%, rather than the actual stats of 100%, 50% and 33%.
     
  3. Cereal KiIler

    Cereal KiIler gib banan VIP

    You are right, I will fix it.
    Basically the problem is that the program is using the general algorithm, which would work as it should with values above 3 .
     
    • Like Like x 1
  4. Cereal KiIler

    Cereal KiIler gib banan VIP

    I just realized that with only 1 player in the round, the round won’t start.
     
    • Like Like x 1
  5. Siddo

    Siddo Banned VIP Bronze

    You can make it start even with one player (but it's kinda redundant) (y)
     
  6. Cereal KiIler

    Cereal KiIler gib banan VIP

    You can but you won’t get any roles
     
  7. Cereal KiIler

    Cereal KiIler gib banan VIP

    I fixed the bug, you can now download the newer version.
     
    • Like Like x 1
  8. Cereal KiIler

    Cereal KiIler gib banan VIP