Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
limbo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christoph Schwering
limbo
Commits
56150040
Commit
56150040
authored
8 years ago
by
Christoph Schwering
Browse files
Options
Downloads
Patches
Plain Diff
Fixed: Minesweeper error visualization bug.
parent
22c1709c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/minesweeper/minesweeper-js.html
+1
-2
1 addition, 2 deletions
examples/minesweeper/minesweeper-js.html
with
1 addition
and
2 deletions
examples/minesweeper/minesweeper-js.html
+
1
−
2
View file @
56150040
...
...
@@ -263,8 +263,7 @@ function displayGame(arg) {
var
lastLegal
=
currentGame
>
1
?
games
[
currentGame
-
2
]
:
null
;
var
lastMove
=
currentGame
>
0
?
games
[
currentGame
-
1
]
:
null
;
var
g
=
games
[
currentGame
];
var
finalDisplay
=
gameOver
&&
currentGame
==
games
.
length
-
1
;
var
madeMistake
=
gameOver
&&
games
.
length
>=
2
&&
games
[
games
.
length
-
2
]
!=
games
[
games
.
length
-
1
];
var
madeMistake
=
gameOver
&&
((
games
.
length
>=
2
&&
games
[
games
.
length
-
2
]
!=
games
[
games
.
length
-
1
])
||
games
[
games
.
length
-
1
].
indexOf
(
'
'
)
!=
-
1
);
var
i
;
for
(
i
=
0
;
i
<
g
.
length
;
++
i
)
{
var
c
=
g
[
i
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment