Flipping bits game: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: change was made before example was marked incomplete.) |
(example 3 by 3) |
||
Line 394:
=={{header|C++}}==
<lang cpp>
#include <time.h>
Line 487 ⟶ 486:
int main( int argc, char* argv[] )
{ srand( time( NULL ) ); flip g; g.play(
</lang>
{{out}}
<pre>
TARGET:
1 2 3
a 1
b 1 0 1
c
d 0 0 0 0 0▼
e 0 1 1 0 0▼
YOU:
1 2 3
a
b 0 1 0
c
d 0 0 0 0 0▼
e 1 0 0 1 1▼
▲Enter rows letters and/or column numbers: abce
TARGET:
1 2 3
YOU:
1 2 3
a 1 1 0
c 1 1 1
Enter rows letters and/or column numbers: c
** Well done! **
Used
</pre>
|