diff --git a/index.html b/index.html index e700fa7..e93b5ff 100644 --- a/index.html +++ b/index.html @@ -11,175 +11,207 @@
-

Tripeaks Solver

+

Tripeaks Solver

-

- Enter cards representing a Tripeaks game below. Enter each card as 2 - characters representing the rank (A, 2, 3, 4, 5, 6, 7, 8, 9, T, J, - Q, K) and suit (C, D, H, S). For example, "TH" is the Ten of Hearts. -

+
+
+

+ +

+
+
-

- Use a single zero ("0") for unknown cards. However, the last 34 - cards (bottom row & stock) must be known, and you don't need to - enter unknown cards before the first card you know. -

+

+ Enter cards representing a Tripeaks game below. Enter each card as 2 + characters representing the rank (A, 2, 3, 4, 5, 6, 7, 8, 9, T, J, + Q, K) and suit (C, D, H, S). For example, "TH" is the Ten of Hearts. +

+ +

+ Use a single zero ("0") for unknown cards. However, the last 34 + cards (bottom row & stock) must be known, and you don't need to + enter unknown cards before the first card you know. +

+ +

+ Entry is case-insensitive, and you can separate cards with any + character (space, comma, etc), or use no separator. Valid examples: +

+ +
    +
  • + 7S 5D 7C 2D 0 0 3S 2H 3H 9H KC QC TD 8D 9C 7H 9D JS QS 4H 5C 5S 4C + 2C QD 8C KD 3D KS JD 2S 7D KH AH 5H 9S 4S QH 6S 6D 3C JC TC 8H 6C + TH AS AD 6H +
  • +
  • + jc, ts, 6d, 7h, qh, 3s, 5h, jh, 6h, 2d, ac, 7s, 7c, 3d, kd, 9s, + 3c, th, 6c, ah, 8h, tc, 4s, 8c, ad, 3h, ks, 6s, js, 7d, jd, td, + 2c, kh +
  • +
  • + 7c03s0qsjc00JSasTSadtcqd9s4s2h9h8sjh6c3dks5s5c6h9C2Cac8C6d5DTH8dkckd9d4c5h8hqh6s +
  • +
+ +
+
+
-

- Entry is case-insensitive, and you can separate cards with any - character (space, comma, etc), or use no separator. Valid examples: -

+
-
    -
  • - 7S 5D 7C 2D 0 0 3S 2H 3H 9H KC QC TD 8D 9C 7H 9D JS QS 4H 5C 5S 4C - 2C QD 8C KD 3D KS JD 2S 7D KH AH 5H 9S 4S QH 6S 6D 3C JC TC 8H 6C - TH AS AD 6H -
  • -
  • - jc, ts, 6d, 7h, qh, 3s, 5h, jh, 6h, 2d, ac, 7s, 7c, 3d, kd, 9s, - 3c, th, 6c, ah, 8h, tc, 4s, 8c, ad, 3h, ks, 6s, js, 7d, jd, td, - 2c, kh -
  • -
  • - 7c03s0qsjc00JSasTSadtcqd9s4s2h9h8sjh6c3dks5s5c6h9C2Cac8C6d5DTH8dkckd9d4c5h8hqh6s -
  • -
+
- -
-

- Enter Your Cards -

-
- - -
-
- - -
-
+

+ Enter Your Cards +

+
+ + +
+
+ + +
+ - -
-
- - Game Row 1, Top of Peaks - - - - Game Row 2, Second Row - - - - Game Row 3, Third Row - - - - Game Row 4, Base of Peaks - - - - Game Stock, the Draw Cards - -
-
- - -
-
+
-

+ id="playingCardsPreview" + x-data="playingCardsPreview" + class="mb-4" + > +
+ + Game Row 1, Top of Peaks + + + + Game Row 2, Second Row + + + + Game Row 3, Third Row + + + + Game Row 4, Base of Peaks + + + + Game Stock, the Draw Cards + +
+
-
    - -
- +
+ +
+
+
+

+
+ +
    + +
+ + + +
    + +
+
+
-
    - -
+
diff --git a/main.js b/main.js index d7d7545..cb4bde2 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,6 @@ import "./style.scss"; //import 'bootstrap'; +import './node_modules/bootstrap/js/src/collapse'; import Alpine from "alpinejs"; import cardSvgs from "./cardSvgs"; import SolverWorker from "./solverWorker?worker"; @@ -225,7 +226,7 @@ const encouragements = [ Alpine.data("gameSolving", () => ({ encouragements, solverWorker: null, - headerText: "", + headerText: "Solution will go here:", moveCount: 23, statusMessages: [], solutionMoves: [], diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..d06f98d --- /dev/null +++ b/vite.config.js @@ -0,0 +1,6 @@ +import { defineConfig } from 'vite' + +export default defineConfig({ + // ... + base: './' +}) \ No newline at end of file