Commit Graph

83 Commits

Author SHA1 Message Date
MasterGordon 9a5ee93c4b updated game performance 2024-10-27 19:02:07 +01:00
MasterGordon 6a1b9ef890 added no dupe for lootbox 2024-10-19 23:50:15 +02:00
MasterGordon 47f4ee6464 added no dupe for lootbox 2024-10-19 23:49:27 +02:00
MasterGordon bd9d63958c added helloween lootbox 2024-10-19 23:39:42 +02:00
CutieCat2804 66ebbbb2de add halloween lootbox / fix thresh theme 2024-10-19 18:54:49 +02:00
CutieCat2804 d1dae6aba9 Merge branch 'main' of https://github.com/MasterGordon/minesweeper into main 2024-10-19 17:25:01 +02:00
CutieCat2804 6c52725272 fix special tiles / wip add halloween themes 2024-10-19 17:24:38 +02:00
MasterGordon ea3a3dd46f improved rng 2024-10-18 18:17:30 +02:00
MasterGordon 0dca37f035 fixed hash shit 2024-10-18 18:12:18 +02:00
MasterGordon d1c7d4d0da fixed rng 2024-10-18 18:12:02 +02:00
CutieCat2804 42ad2204f7 add special tiles 2024-10-18 18:03:47 +02:00
MasterGordon da17a58998 Merge branch 'main' of github.com:MasterGordon/minesweeper 2024-10-18 17:32:32 +02:00
MasterGordon 516e4f64f0 fixed build 2024-10-18 17:32:28 +02:00
CutieCat2804 6e638b727f 2 with hat 2024-10-18 17:29:32 +02:00
CutieCat2804 a5f9ba865d Merge branch 'main' of https://github.com/MasterGordon/minesweeper into main 2024-10-18 17:21:50 +02:00
CutieCat2804 6bc55a3ae7 2 2024-10-18 17:21:48 +02:00
MasterGordon d26f08cd21 added type imports 2024-10-18 17:16:52 +02:00
MasterGordon 2d7e06305c Merge branch 'main' of github.com:MasterGordon/minesweeper 2024-10-18 17:13:42 +02:00
MasterGordon 87e9238923 added helpers 2024-10-18 17:13:36 +02:00
CutieCat2804 2efb88787f Merge branch 'main' of https://github.com/MasterGordon/minesweeper into main 2024-10-18 17:09:56 +02:00
CutieCat2804 ff649e8e0f fix league numbers 2024-10-18 17:09:55 +02:00
MasterGordon 1296848339 added theme weights 2024-10-18 17:09:41 +02:00
MasterGordon 86fcef5ade added metrics 2024-10-17 23:39:25 +02:00
MasterGordon bcb21a7963 rescaled gem gain 2024-10-17 22:42:41 +02:00
Gordon Goldbach 1bab0af55f
Merge pull request #2 from MasterGordon/v2
V2
2024-10-17 20:05:35 +02:00
Gordon Goldbach 5fa6b864de
Merge pull request #1 from MasterGordon/add-reconnect-auth
Add websocket reconnection and re-authentication
2024-10-17 20:03:42 +02:00
Gordon Goldbach b15a32037f Add websocket reconnection and re-authentication
Add auto reconnection and re-authentication logic to `wsClient`.

* **WebSocket Connection and Reconnection:**
  - Modify `createWSClient` to include reconnection logic.
  - Add `connect` function to handle WebSocket connection and reconnection attempts.
  - Set `reconnectAttempts` and `maxReconnectAttempts` to manage reconnection attempts.
  - Implement exponential backoff for reconnection attempts.
  - Log error when maximum reconnection attempts are reached.

* **Authentication:**
  - Add logic to re-authenticate using a token stored in `localStorage` upon WebSocket connection.
  - Set `isAuthenticated` flag based on re-authentication success.
  - Log error if re-authentication fails.

* **Error Handling:**
  - Add `onerror` event handler to log WebSocket errors and close the connection.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MasterGordon/minesweeper/tree/v2?shareId=XXXX-XXXX-XXXX-XXXX).
2024-10-17 20:02:26 +02:00
MasterGordon bc768274dc added bouncy image 2024-10-17 19:58:10 +02:00
MasterGordon 8f9a71c636 fixed theme preview 2024-10-17 00:43:43 +02:00
CutieCat2804 4c3bbc4697 add stage and bombs to window mode 2024-10-16 20:23:07 +02:00
CutieCat2804 2d7a6fc848 add restart button to window mode 2024-10-16 20:11:08 +02:00
CutieCat2804 88e74c6de5 fix rewards function 2024-10-16 18:11:46 +02:00
MasterGordon 5f9bf142b2 updated math 2024-10-16 00:06:12 +02:00
MasterGordon 72150b070d adjusted gem rewards 2024-10-15 23:58:10 +02:00
MasterGordon d6c25289fd up 2024-10-15 23:33:38 +02:00
MasterGordon e89516c618 fixed limit 2024-10-15 22:23:57 +02:00
MasterGordon 10c64268c8 fixed limit 2024-10-15 22:20:58 +02:00
MasterGordon 157e4768f3 added cases 2024-10-15 21:06:36 +02:00
MasterGordon 5e30cee6ca added store route 2024-10-13 23:40:26 +02:00
MasterGordon 3a14766563 fixed build 2024-10-13 21:37:40 +02:00
MasterGordon ebbc8d0f29 updated themes, added gem gain, added feed 2024-10-13 21:23:31 +02:00
CutieCat2804 d9ff1a9ffc add tags / fix them name 2024-10-13 15:05:44 +02:00
CutieCat2804 ec0025b71d theme fixes 2024-10-13 14:53:23 +02:00
CutieCat2804 e134ad967f add color palette themes 2024-10-13 12:07:11 +02:00
CutieCat2804 706423cb76 add question-mark to preview 2024-10-13 11:45:29 +02:00
CutieCat2804 aab7e7de4e add themes to collection 2024-10-12 14:45:08 +02:00
MasterGordon 3e0ace5230 added collection 2024-10-12 14:17:05 +02:00
MasterGordon 538750b691 allow showing past game 2024-10-12 01:23:15 +02:00
MasterGordon ac9543267a Merge branch 'v2' of github.com:MasterGordon/minesweeper into v2 2024-10-12 00:52:25 +02:00
MasterGordon 5e259d73e8 added match history and improved stats 2024-10-12 00:52:20 +02:00