This notebook simulates a coin tossing game where the player gets to pick a string of head/tail occurances as the endgame. A coin is tossed until the chosen sequence of head/tail occurs. When the endgame sequence occurs the game ends. The objective is finding the sequence of head/tail occurances (for a given sequence length) that will be end the game with the least number of tosses. This is simulated by running a given number of coin toss games with the chosen endgame sequence. The avarage number of tosses required to win is computed and its distribution is plotted.
-
Notifications
You must be signed in to change notification settings - Fork 0
Simulating a coin tossing game
License
nishantsule/Coin-Toss-Game
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simulating a coin tossing game
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published