SH_Draw_Probability()
In SH, liberal and fascist cards are pulled from the deck. There are a predetermined number of fascist and liberal cards in the deck (11 F, 6 L, 17 Total). The probability of drawing 3 combinations of cards varies based on the number of each card which has been discarded (or has CLAIMED to have been discarded). Simply enter the type of draw that was claimed to have been made (I.E. FFF, FFL, LLF, LLL) as well as the number of each card that has been claimed to have been discarded (0-6 Liberal, 0-11 Fascist), and the function will output the probability of that draw given the deck configuration. Yes, I am a nerd.
Cite As
John Tidman (2024). SH_Draw_Probability() (https://www.mathworks.com/matlabcentral/fileexchange/56351-sh_draw_probability), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.1.0.0 | UPDATE 4-6-16: I made it so that no matter what case you input for the draws (including mixed case i.e. fFl, FlL, etc) it should be able to figure out your draw type. |
||
1.0.0.0 | Note that there are several types of draws in SH. FFF (3-Fascist), LLL (3-Liberal), FFL, LLF. These final 2 can be entered any way you want (i.e. FLF, LFF, LFL, FLL). |