-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Solver and UI update Co-authored-by: Michael Fuller <[email protected]>
- Loading branch information
Showing
5 changed files
with
327 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ChouTreasureGridItem } from './chou-treasure-grid-item'; | ||
|
||
describe('ChouTreasureGridItem', () => { | ||
it('should create an instance', () => { | ||
expect(new ChouTreasureGridItem()).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ChouTreasureTypes } from './chou-treasure-types'; | ||
|
||
export class ChouTreasureGridItem { | ||
public edgeBombs: number = 0; | ||
public edgeUnknown: number = 0; | ||
public safe: boolean = false; | ||
public solved: boolean = false; | ||
public user: boolean = false; | ||
|
||
constructor( | ||
public x: number = 0, | ||
public y: number = 0, | ||
public classification: ChouTreasureTypes = ChouTreasureTypes.UNKNOWN | ||
) {} | ||
|
||
public reset() { | ||
this.edgeBombs = 0; | ||
this.edgeUnknown = 0; | ||
this.safe = false; | ||
this.solved = false; | ||
} | ||
} |
Oops, something went wrong.