Files
basic-computer-games/36_Flip_Flop
Guido Knips 7a62098e94 Un-ignore Cargo.lock
Official cargo documentation says Cargo.lock should be
under version control for binaries (but not for libraries)

see https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries
2023-08-28 21:06:35 +02:00
..
2022-03-05 09:29:23 +01:00
2022-03-05 09:29:23 +01:00
2023-04-23 22:02:16 -05:00
2022-03-05 09:29:23 +01:00
2023-08-28 21:06:35 +02:00

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):

Downloaded from Vintage Basic at http://www.vintage-basic.net/games.html

Porting Notes

(please note any difficulties or challenges in porting here)