home *** CD-ROM | disk | FTP | other *** search
- Memory, version 1.10
-
- ERB produxions
-
-
- VERY SHORT DOCUMENTATION
-
- What about ... :
-
- ... the memory-diagrams for each computer player.
- A memory-diagram visualizes the memory of the computer player.
- Every bar represent the percentage of cards (y-axis) the computer
- still remembers but forgets after that turn (x-axis).
- E.g. a bar with a height of 22% on turn 5. This means that the
- computer remembers 22% of the cards five turns after he has seen
- them first. But on the 6th turn he doesn't know them anymore.
-
- ... the variables Add, Mult, Sub and Div.
- Those variables determine the memory for each computer player.
- For each computerplayer every card on the table has a value. If
- this value is greater than 1 the computer knows that card,
- otherwise he doesn't know which card it is. Those values are
- determined with the above variables.
- To explain the algorithm let's look at a value(V) for one of the
- computerplayers(P) for a arbitrary card(C).
- When the game begins all values are reset, so V=0. And V will remain
- 0 until the card C is turned.
- When card C is turned :
- V will be increased with a random number between then lower and
- the upper limit for the variable Add.
- Next V will be multiplied with a random number between the limits
- for Mult.
- When V is greater than 1 computerplayer P will know remember
- card C.
- After each turn V will now diminish (until V is again 0) :
- V will be decreased with a random number between the limits for
- Sub.
- Then V will be divided with a random number between the limits for
- Div.
- If V is smaller than 0, V will be reset to 0.
-
- Now all the secrets are revealed. So, why not experiment a little
- bit and modify the limits for Add, Mult, Sub and Div. See the
- effect by just looking at the memory diagrams.
-
- ... the adjustment values.
- - Delay 1 : The time the computer will pause before he turns the
- second card after he has turned one card. This delay is to see
- in which order a computer player turns the cards.
- - Delay 2 : The time both cards will remain open before the cards
- will be closed again or taken away. This delay is to memorize
- the cards.
- - Delay 3 : The time between the display of each row cards when at
- the end of the game the results are revealed. This delay is to
- add a little bit excitement.
- - Diagram Acc : This value determines the accuracy of the memory-
- diagrams. The memory-diagrams are calculated by simulating for
- a number of cards the memorize-and-forget-process. And
- Diagram Acc is simply the number of cards that is taken for the
- calculation of each memory-diagram.
-
-
- After you have read all of the above, I think you are able to play memory
- by simply using your common sense.
-
- (Oops, almost forgot to mention that ESC returns you to the menu when you
- are playing the game. It is a bit clumsy, because you have to wait until
- the current player finished its turn. So have patience.)
-