search for: noplayer

Displaying 1 result from an estimated 1 matches for "noplayer".

Did you mean: oplayer
2012 Jun 15
2
Looking for Speed in a Toy Simulation Example
...aware there is an easy explicit solution, but this is intended to serve as instructional example). Suppose you have a poker game with 6 players and a deck of 52 cards. Compute the empirical frequencies of having a single-suit hand. The way I want the result structured is a boolean nosimulation by noplayer matrix containing true or false depending whether the specific player was dealt a single-suit hand. The code itself is quite short: 1 line to "deal the cards", 1 line to check whether any of the six players has single-suit hand. I played around with different variants (all found below)...