Flipping bits game: Difference between revisions

Content added Content deleted
(Add 8086 assembly version)
Line 744: Line 744:
goal: resb 64 ; 8*8 goal</lang>
goal: resb 64 ; 8*8 goal</lang>


{{out}}

Example game:

<pre>C:\>flip86 3
*** FLIP THE BITS ***
---------------------


Your flips: 0 Goal: 6

--Board------------ --Goal-------------
A B C A B C
1 1 1 0 1 1 1 1
2 1 0 0 2 0 1 0
3 1 1 1 3 1 1 0

Press line or column to flip, or Q to quit: 2

Your flips: 1 Goal: 6

--Board------------ --Goal-------------
A B C A B C
1 1 1 0 1 1 1 1
2 0 1 1 2 0 1 0
3 1 1 1 3 1 1 0

Press line or column to flip, or Q to quit: c
You win!
C:\></pre>


=={{header|Ada}}==
=={{header|Ada}}==