Fortune Telling Collection - Fortune-telling birth date - A and B play games. The turntable is divided into four squares, each with a coin. A can choose to flip two or one coin at a time, and then B can turn it over.
A and B play games. The turntable is divided into four squares, each with a coin. A can choose to flip two or one coin at a time, and then B can turn it over.
Considering the symmetry of the turntable and the symmetry of the front and back of the coin, there are actually only four initial States of the game, as shown in the figure.
If it is in the state of 1, then A wins directly;
If it is state 2, then A can win by flipping the two opposite coins;
If it is in state 3, two coins adjacent to a flip may win directly or enter state 2, but the two coins opposite to a flip are still in state 3;
If it is in state 4, A may win by flipping a coin and turn it into state 2 or state 3, but the two opposite or adjacent to A will still stay in state 4.
Well, the state and the transformation law between them are clear, then A's strategy can be easily determined.
Step 1: Confirm whether you win or not, if yes, terminate, otherwise, enter the second step (non-status 1).
Step 2: flip two opposite coins to confirm whether they win, if so, stop, otherwise, enter the third step (non-state 2).
Step 3: flip the two adjacent ones to confirm whether they win, if so, stop, otherwise, go to step 4.
Step 4: flip two opposite coins to confirm whether they win, if so, stop, otherwise, enter step 5 (non-state 3).
Step 5: Flip a coin to confirm whether you win, if so, stop, otherwise go to step 6.
Step 6: flip two opposite coins to confirm whether you win, if so, stop, otherwise go to step 7.
Step 7: flip the two adjacent ones to confirm whether they win, if so, stop, otherwise, go to step 8.
Step 8: flip two opposite coins, and you win.
- Previous article:Make a fortune telling.
- Next article:Fortune teller _ fortune teller
- Related articles
- Maoshan Yijing fortune telling
- Is there a fortune teller in the world _ Is there a fortune teller in the world?
- What does it mean to dream that my brother advised me to tell my fortune?
- Top Ten Good Comics
- What are the good novels written by two men?
- Fortune teller tells others to tell fortune _ Will fortune teller tell others to tell fortune?
- Please don't criticize the child's appearance casually!
- Fortune telling can't be gold and silver _ fortune telling can't bring gold and silver jewelry.
- Small fortune-telling video spreads positive energy _ short fortune-telling video
- How to calculate the gender of ID card with if function?