diff --git a/src/app/old-chou-treasure-button/old-chou-treasure-button.component.ts b/src/app/old-chou-treasure-button/old-chou-treasure-button.component.ts index adb7679..9e669be 100644 --- a/src/app/old-chou-treasure-button/old-chou-treasure-button.component.ts +++ b/src/app/old-chou-treasure-button/old-chou-treasure-button.component.ts @@ -39,7 +39,7 @@ export class OldChouTreasureButtonComponent implements OnInit { let mode = ''; - switch (value) { + switch (value.classification) { case ChouTreasureTypes.BOMB: this.label = 'BOMB'; mode = 'barrel'; @@ -88,7 +88,6 @@ export class OldChouTreasureButtonComponent implements OnInit { ngOnInit(): void {} buttonPressed() { - console.log('C1'); this.cellClicked.emit(this.y * 5 + this.x); } } diff --git a/src/app/old-chou-treasure/old-chou-treasure.component.html b/src/app/old-chou-treasure/old-chou-treasure.component.html index 77e6720..91507e2 100644 --- a/src/app/old-chou-treasure/old-chou-treasure.component.html +++ b/src/app/old-chou-treasure/old-chou-treasure.component.html @@ -20,7 +20,76 @@
This tile is a mystery.
++ This tile has no bombs on the N, + E, S, + W edges. +
++ This tile has a total of one bomb on either the + N, E, + S, W edges. +
++ This tile has a total of two bombs on either the + N, E, + S, W edges. +
+The program is unsure what is under this tile.
+The program is sure this tile is safe to dig.
+