From 58aea65c65778288dc2f773008fa704b073ccc17 Mon Sep 17 00:00:00 2001 From: Michael Fuller Date: Wed, 4 May 2022 22:03:08 -0500 Subject: [PATCH] Old Chou's Treasure Solver (#178) Adding Solver Co-authored-by: Michael Fuller --- src/app/app-routing.module.ts | 2 + src/app/app.component.html | 16 + src/app/app.module.ts | 8 + .../old-chou-treasure-area.component.html | 25 ++ .../old-chou-treasure-area.component.scss | 5 + .../old-chou-treasure-area.component.spec.ts | 25 ++ .../old-chou-treasure-area.component.ts | 23 ++ .../old-chou-treasure-button.component.html | 4 + .../old-chou-treasure-button.component.scss | 60 +++ ...old-chou-treasure-button.component.spec.ts | 25 ++ .../old-chou-treasure-button.component.ts | 94 +++++ .../old-chou-treasure-row.component.html | 30 ++ .../old-chou-treasure-row.component.scss | 5 + .../old-chou-treasure-row.component.spec.ts | 25 ++ .../old-chou-treasure-row.component.ts | 26 ++ .../old-chou-treasure.component.html | 26 ++ .../old-chou-treasure.component.scss | 25 ++ .../old-chou-treasure.component.spec.ts | 25 ++ .../old-chou-treasure.component.ts | 26 ++ src/app/shared/chou-treasure-grid.spec.ts | 7 + src/app/shared/chou-treasure-grid.ts | 390 ++++++++++++++++++ src/app/shared/chou-treasure-types.ts | 11 + src/assets/chou/barrel.png | Bin 0 -> 9615 bytes src/assets/chou/cabbage.png | Bin 0 -> 9532 bytes src/assets/chou/empty.png | Bin 0 -> 3307 bytes src/assets/chou/iron.png | Bin 0 -> 9243 bytes src/assets/chou/question.png | Bin 0 -> 2051 bytes src/assets/chou/safe.png | Bin 0 -> 1374 bytes src/assets/chou/unknown.png | Bin 0 -> 630 bytes 29 files changed, 883 insertions(+) create mode 100644 src/app/old-chou-treasure-area/old-chou-treasure-area.component.html create mode 100644 src/app/old-chou-treasure-area/old-chou-treasure-area.component.scss create mode 100644 src/app/old-chou-treasure-area/old-chou-treasure-area.component.spec.ts create mode 100644 src/app/old-chou-treasure-area/old-chou-treasure-area.component.ts create mode 100644 src/app/old-chou-treasure-button/old-chou-treasure-button.component.html create mode 100644 src/app/old-chou-treasure-button/old-chou-treasure-button.component.scss create mode 100644 src/app/old-chou-treasure-button/old-chou-treasure-button.component.spec.ts create mode 100644 src/app/old-chou-treasure-button/old-chou-treasure-button.component.ts create mode 100644 src/app/old-chou-treasure-row/old-chou-treasure-row.component.html create mode 100644 src/app/old-chou-treasure-row/old-chou-treasure-row.component.scss create mode 100644 src/app/old-chou-treasure-row/old-chou-treasure-row.component.spec.ts create mode 100644 src/app/old-chou-treasure-row/old-chou-treasure-row.component.ts create mode 100644 src/app/old-chou-treasure/old-chou-treasure.component.html create mode 100644 src/app/old-chou-treasure/old-chou-treasure.component.scss create mode 100644 src/app/old-chou-treasure/old-chou-treasure.component.spec.ts create mode 100644 src/app/old-chou-treasure/old-chou-treasure.component.ts create mode 100644 src/app/shared/chou-treasure-grid.spec.ts create mode 100644 src/app/shared/chou-treasure-grid.ts create mode 100644 src/app/shared/chou-treasure-types.ts create mode 100644 src/assets/chou/barrel.png create mode 100644 src/assets/chou/cabbage.png create mode 100644 src/assets/chou/empty.png create mode 100644 src/assets/chou/iron.png create mode 100644 src/assets/chou/question.png create mode 100644 src/assets/chou/safe.png create mode 100644 src/assets/chou/unknown.png diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 18c36f7..8c87bd2 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -2,10 +2,12 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './home/home.component'; import { MapComponent } from './map/map.component'; +import { OldChouTreasureComponent } from './old-chou-treasure/old-chou-treasure.component'; import { PuzzleListingComponent } from './puzzle-listing/puzzle-listing.component'; import { PuzzleViewComponent } from './puzzle-view/puzzle-view.component'; const routes: Routes = [ + { path: 'oldchoutreasure', component: OldChouTreasureComponent }, { path: 'puzzle/:puzzleId', component: PuzzleViewComponent }, { path: 'list/:island', component: PuzzleListingComponent }, { path: 'map', component: MapComponent }, diff --git a/src/app/app.component.html b/src/app/app.component.html index 90ea2a6..e097cf6 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -52,6 +52,22 @@ + +