Jump to content

Flipping bits game: Difference between revisions

(Add 8086 assembly version)
Line 744:
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}}==
2,123

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.