Flipping bits game: Difference between revisions

Content added Content deleted
(Added Maple implementation.)
(Deleted a comment in Maple)
Line 1,765: Line 1,765:
local r, c, i, toFlip, target;
local r, c, i, toFlip, target;
randomize():
randomize():
(*target := Array(1..n, 1..n):
for r to n do
for c to n do
target[r, c] := rand(0..1)();
end do;
end do;*)
target := Array( 1..n, 1..n, rand(0..1) );
target := Array( 1..n, 1..n, rand(0..1) );
board := copy(target);
board := copy(target);