hjsdjhfh
This commit is contained in:
@@ -464,8 +464,9 @@ class Game extends World {
|
|||||||
|
|
||||||
// Draw the solution.
|
// Draw the solution.
|
||||||
WorldImage draw_sol() {
|
WorldImage draw_sol() {
|
||||||
/*if (this.done)*/return this.draw_sol_rev();
|
if (this.won) return this.draw_sol_rev();
|
||||||
/*else return this.draw_sol_hid();*/
|
else if (this.done) return this.draw_sol_fail();
|
||||||
|
else return this.draw_sol_hid();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw the revealed answer.
|
// Draw the revealed answer.
|
||||||
@@ -478,11 +479,19 @@ class Game extends World {
|
|||||||
return new RectangleImage(
|
return new RectangleImage(
|
||||||
this.solution.getW(),
|
this.solution.getW(),
|
||||||
2 * Dot.r,
|
2 * Dot.r,
|
||||||
OutlineMode.OUTLINE,
|
OutlineMode.SOLID,
|
||||||
Color.BLACK
|
Color.BLACK
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Draw the hidden answer.
|
||||||
|
WorldImage draw_sol_fail() {
|
||||||
|
return new OverlayImage(
|
||||||
|
new TextImage("dumbass.", Color.RED),
|
||||||
|
this.draw_sol_hid()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
WorldImage draw_guesses() {
|
WorldImage draw_guesses() {
|
||||||
return this.guesses.draw();
|
return this.guesses.draw();
|
||||||
}
|
}
|
||||||
@@ -610,7 +619,7 @@ class ConsIncompleteGuess implements ILoGuess {
|
|||||||
ILoDot solution,
|
ILoDot solution,
|
||||||
boolean premoved
|
boolean premoved
|
||||||
) {
|
) {
|
||||||
if (!premoved) throw new Error("Here");
|
//if (!premoved) throw new Error("Here");
|
||||||
if (this.guessSoFar.full(limit)) {
|
if (this.guessSoFar.full(limit)) {
|
||||||
ILoDot guessDots = this.guessSoFar.guessSoFar;
|
ILoDot guessDots = this.guessSoFar.guessSoFar;
|
||||||
Feedback feedback = guessDots.compare(solution);
|
Feedback feedback = guessDots.compare(solution);
|
||||||
|
Reference in New Issue
Block a user