Search the Community
Showing results for tags 'penneys'.
-
There is a PENNEY'S game at http://www.html5pcode.com/a1ypenneys.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://www.html5pcode.com The goal is to maximize the probability of your sequence of 4 heads & tails occurring before another given sequence of 4 heads & tails. A coin is flipped until one of the two sequences occurs. A Markov Transition Matrix is used to determine the winner. There is a row in the matrix for each of the 16 possible sequences of 4 tosses. When one of the 2 sequences occurs, it stays on that same row of the matrix. There are 100 different games. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works.
-
- penneys
- markov chain
-
(and 1 more)
Tagged with: