शुरू करेंमुफ़्त में शुरू करें

One round of von Neumann Poker

Let us simulate one round of von Neumann poker, in which each player of two players, A and B, receives a value drawn at random from a uniform distribution.

Here, we will ignore the betting aspect, and just check which player wins.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Probability Puzzles in R

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Generate the values for each player, coming from a Uniform distribution.
  • Fill in the condition to check whether player A has won.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Generate values for both players
A <- 
B <- 

# Check winner
if(___){
  print("Player A wins")
} else {
  print("Player B wins")
}

print(A)
print(B)
कोड संपादित करें और चलाएँ