Files
basic-computer-games/36_Flip_Flop/README.md
2022-03-18 19:50:22 -07:00

33 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
### Flip Flop
The object of this game is to change a row of ten Xs
```
X X X X X X X X X X
```
to a row of ten 0s
```
0 0 0 0 0 0 0 0 0 0
```
by typing in a number corresponding to the position of an “X” in the line. On some numbers one position will change while on other numbers, two will change. For example, inputting a 3 may reverse the X and 0 in position 3, but it might possibly reverse some of other position too! You ought to be able to change all 10 in 12 or fewer moves. Can you figure out a good winning strategy?
To reset the line to all Xs (same game), type 0 (zero). To start a new game at any point, type 11.
The original author of this game was Micheal Kass of New Hyde Park, New York.
---
As published in Basic Computer Games (1978):
- [Atari Archives](https://www.atariarchives.org/basicgames/showpage.php?page=63)
- [Annarchive](https://annarchive.com/files/Basic_Computer_Games_Microcomputer_Edition.pdf#page=78)
Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html
#### Porting Notes
(please note any difficulties or challenges in porting here)