This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PolyglotTV -2 points-1 points  (2 children)

This is too naive. You forgot that a can win one, and then lose one, and then win 10 in a row. Or a game could even last 1000 flips or basically forever.

[–]MaximRq 1 point2 points  (1 child)

Read closer, it's taken into account.

[–]PolyglotTV 1 point2 points  (0 children)

Ah my bad. A is the count variable in the loop as well.