Commit Graph

  • abbd9f3289 Created deck editor eviterin 2024-01-11 21:32:38 +01:00
  • dfae8303c6 hotfix for card art not loading eviterin 2024-01-12 22:25:12 +01:00
  • 19e38ecad7 fix: convert card bigint ids to string ultraviolet10 2024-01-04 16:29:13 +05:30
  • 10d2a6be36 use the rename ultraviolet10 2024-01-03 23:22:20 +05:30
  • b9b6bebdf5 rename BaseCard to CardContainer ultraviolet10 2024-01-03 23:21:54 +05:30
  • 8a945b25cb remove unused type ultraviolet10 2024-01-03 23:21:04 +05:30
  • 2cbea415fe remove comment ultraviolet10 2024-01-02 13:48:34 +05:30
  • 1e8771a775 fix: refactors ultraviolet10 2024-01-02 12:09:05 +05:30
  • 15ccec05ae chore: integrate new store hooks into gameplay ultraviolet10 2023-12-27 00:28:33 +05:30
  • 5f1427747e remove clutter from BaseCard ultraviolet10 2023-12-24 11:33:03 +05:30
  • 34d2cb5cad fix: hand card styles ultraviolet10 2023-12-24 11:23:51 +05:30
  • 51724ace2d cleanup of card component structure, added hook for draggable events ultraviolet10 2023-12-23 00:04:26 +05:30
  • 90fa31af2c feat: create child components for different card views ultraviolet10 2023-11-28 12:23:23 +05:30
  • 76121bbb6a remove outer SortableContext ultraviolet10 2023-11-11 00:16:28 +05:30
  • 6baed7c293 use Sortable setup for multiple containers (Hand and PlayerBoard) ultraviolet10 2023-11-09 16:01:30 +05:30
  • 39331e224e update PlayerBoard style to show when HandCard is hovering on it ultraviolet10 2023-11-06 19:37:41 +05:30
  • d2d888b887 turn Hand into a Droppable element ultraviolet10 2023-11-06 17:16:57 +05:30
  • 1788006885 change player stats layout to flex-row ultraviolet10 2023-11-04 13:39:49 +05:30
  • 6e847e3573 fix opponent address retrieval ultraviolet10 2023-11-04 13:27:06 +05:30
  • ae16b2ff0d change useAtom hook to handle only card additions, set playedCards to [] ultraviolet10 2023-11-03 12:57:53 +05:30
  • c699a100ad rename import and usage ultraviolet10 2023-11-03 11:46:55 +05:30
  • e88ac824ef rename card component to handCard ultraviolet10 2023-11-03 11:46:40 +05:30
  • 35fe929e4a initialise reused condition as const ultraviolet10 2023-11-03 11:43:53 +05:30
  • 5f7a7520f4 remove comment ultraviolet10 2023-11-03 11:41:54 +05:30
  • 8f830c5a3d remove clsx package, alter classname ultraviolet10 2023-11-03 11:41:13 +05:30
  • 49a45380e3 format ultraviolet10 2023-11-01 22:41:47 +05:30
  • b4ac550e80 dnd setup for cards ultraviolet10 2023-11-01 22:33:19 +05:30
  • de9bca2b69 new type ultraviolet10 2023-11-01 15:24:57 +05:30
  • 2e7bf9b5e8 dnd-kit packages ultraviolet10 2023-11-01 15:24:41 +05:30
  • 5b13849135 moved hardcoded card list to new file ultraviolet10 2023-11-01 15:24:23 +05:30
  • 68c1ee7d77 helper function to display addresses ultraviolet10 2023-11-01 15:24:07 +05:30
  • 8c035ec5a3 add useAtom hook for setting cards in play within current game ultraviolet10 2023-11-01 15:23:45 +05:30
  • a8667777d1 board component (wip) ultraviolet10 2023-10-20 11:39:55 +05:30
  • 945db92af4 Indentation fix eviterin 2024-01-03 19:46:23 +01:00
  • 411a587b7e Activity diagram of New Game added eviterin 2024-01-02 13:12:43 +01:00
  • 4b8cb120ff Added activity diagram to flow.md eviterin 2023-12-30 15:13:55 +01:00
  • 42fae3671c apply useCallback on all function creation in pages Nicolas "Norswap" Laurent 2023-12-18 18:13:57 +01:00
  • 31193b4635 avoid overlaying concede loading modal with game ended modal Nicolas "Norswap" Laurent 2023-12-18 17:56:52 +01:00
  • 4aa96f8f7a remove outdated comment Nicolas "Norswap" Laurent 2023-12-18 17:44:56 +01:00
  • b06632aabc make concede an action for consistency Nicolas "Norswap" Laurent 2023-12-18 17:28:00 +01:00
  • 00f56d7c2f add attack and defend actions Nicolas "Norswap" Laurent 2023-12-18 16:22:15 +01:00
  • 35afb0bf4e print hand instead of indexes Nicolas "Norswap" Laurent 2023-12-18 15:12:33 +01:00
  • c651818e75 apply useCallback on all function creation in pages ns/last-actions Nicolas "Norswap" Laurent 2023-12-18 18:13:57 +01:00
  • 38c6988d6f avoid overlaying concede loading modal with game ended modal Nicolas "Norswap" Laurent 2023-12-18 17:56:52 +01:00
  • f7943e6810 remove outdated comment Nicolas "Norswap" Laurent 2023-12-18 17:44:56 +01:00
  • 820a46a130 make concede an action for consistency Nicolas "Norswap" Laurent 2023-12-18 17:28:00 +01:00
  • f63a7f1aaf add attack and defend actions Nicolas "Norswap" Laurent 2023-12-18 16:22:15 +01:00
  • fe4e6807fb print hand instead of indexes Nicolas "Norswap" Laurent 2023-12-18 15:12:33 +01:00
  • 07cff7c462 add endianness comment, lint, remove unecessary type annotations Nicolas "Norswap" Laurent 2023-12-17 18:06:36 +01:00
  • 6fbe35b76e improve store documentation Nicolas "Norswap" Laurent 2023-12-17 17:31:43 +01:00
  • 8bf58ea11b reorganize store/write.ts, includes removing "quitGame" which was superfluous with setting the gameID to null Nicolas "Norswap" Laurent 2023-12-17 00:03:43 +01:00
  • 75ad6ca58a rename store/actions.ts to write.ts Nicolas "Norswap" Laurent 2023-12-16 19:30:07 +01:00
  • e25e8e0f0f add atoms and hooks for battlefield cards Nicolas "Norswap" Laurent 2023-12-16 19:19:06 +01:00
  • cb78bf59dc cache atoms to avoid spurious re-renders Nicolas "Norswap" Laurent 2023-12-16 18:59:49 +01:00
  • 06d0dbc048 move isGameReadyToStart to store Nicolas "Norswap" Laurent 2023-12-16 16:42:26 +01:00
  • a0d367f836 move checkFresh etc to their own file Nicolas "Norswap" Laurent 2023-12-16 16:35:51 +01:00
  • 76bd58ebec rationalize store structure, notably via shared derivation functions Nicolas "Norswap" Laurent 2023-12-16 16:29:54 +01:00
  • 8c5e25409f add endianness comment, lint, remove unecessary type annotations ns/derive-store Nicolas "Norswap" Laurent 2023-12-17 18:06:36 +01:00
  • e1e8a1e8aa improve store documentation Nicolas "Norswap" Laurent 2023-12-17 17:31:43 +01:00
  • 330308b12d reorganize store/write.ts, includes removing "quitGame" which was superfluous with setting the gameID to null Nicolas "Norswap" Laurent 2023-12-17 00:03:43 +01:00
  • 5f3e7a6065 rename store/actions.ts to write.ts Nicolas "Norswap" Laurent 2023-12-16 19:30:07 +01:00
  • d53cdd3700 add atoms and hooks for battlefield cards Nicolas "Norswap" Laurent 2023-12-16 19:19:06 +01:00
  • 2804d879e5 cache atoms to avoid spurious re-renders Nicolas "Norswap" Laurent 2023-12-16 18:59:49 +01:00
  • c1b3760928 move isGameReadyToStart to store Nicolas "Norswap" Laurent 2023-12-16 16:42:26 +01:00
  • 26ea8ff8b6 move checkFresh etc to their own file Nicolas "Norswap" Laurent 2023-12-16 16:35:51 +01:00
  • 48054e1e22 rationalize store structure, notably via shared derivation functions Nicolas "Norswap" Laurent 2023-12-16 16:29:54 +01:00
  • cd66fb500c add comment eerkaijun 2023-12-17 17:03:09 +00:00
  • dd1eb0fc9c parse proof output eerkaijun 2023-12-17 12:07:32 +00:00
  • 483a7f6500 update proof output typing eerkaijun 2023-12-17 01:37:56 +00:00
  • 868b2b3337 groth16 proving in frontend eerkaijun 2023-12-17 01:11:09 +00:00
  • 63cfd178e0 fix tests eerkaijun 2023-12-16 23:06:16 +00:00
  • e6c5ba8bd4 switch verification function signature eerkaijun 2023-12-16 18:49:03 +00:00
  • 6a7313a1e0 switch to groth16 and update verifiers eerkaijun 2023-12-16 17:50:07 +00:00
  • f34aa27de6 make the hand into a derived atom and make sure it updates when drawing, playing etc Nicolas "Norswap" Laurent 2023-12-14 17:53:26 +01:00
  • 936227b514 suppress some logs Nicolas "Norswap" Laurent 2023-12-13 19:01:36 +01:00
  • 9da76e10de avoid connect-disconnect-reconnect with ?index= flags Nicolas "Norswap" Laurent 2023-12-13 19:01:18 +01:00
  • da5a4b6c66 add and use usePlayerHand hook Nicolas "Norswap" Laurent 2023-12-13 19:00:48 +01:00
  • 3ab8276215 make the hand into a derived atom and make sure it updates when drawing, playing etc ns/dynamic-hand Nicolas "Norswap" Laurent 2023-12-14 17:53:26 +01:00
  • 476de762c7 suppress some logs Nicolas "Norswap" Laurent 2023-12-13 19:01:36 +01:00
  • 74fa8b2af5 avoid connect-disconnect-reconnect with ?index= flags Nicolas "Norswap" Laurent 2023-12-13 19:01:18 +01:00
  • af7eb33730 add and use usePlayerHand hook Nicolas "Norswap" Laurent 2023-12-13 19:00:48 +01:00
  • 25a293b927 misc Nicolas "Norswap" Laurent 2023-12-12 23:48:43 +01:00
  • 040437b5a0 make the random selection of first player not susceptible to transaction races Nicolas "Norswap" Laurent 2023-12-12 23:37:27 +01:00
  • fae3fb991d misc cleanup Nicolas "Norswap" Laurent 2023-12-12 23:37:10 +01:00
  • ada131c135 use joinBlockNum when appropriate when randomness = 0 in refreshGameData Nicolas "Norswap" Laurent 2023-12-12 22:17:00 +01:00
  • 72f8d67e5d add derived atoms for player data, opponent address & opponent data Nicolas "Norswap" Laurent 2023-12-12 22:16:06 +01:00
  • 3b30fb80d3 add type annotations on derived atoms Nicolas "Norswap" Laurent 2023-12-12 19:21:55 +01:00
  • 6af6e6fd2a make cards a derived atom Nicolas "Norswap" Laurent 2023-12-12 19:21:23 +01:00
  • 30730274ce better isGameReadyToStart documentation Nicolas "Norswap" Laurent 2023-12-12 18:16:00 +01:00
  • 79042ac0ca improve doc of timeout logic Nicolas "Norswap" Laurent 2023-12-12 17:43:31 +01:00
  • 3266b89c30 add periodic game data fetch Nicolas "Norswap" Laurent 2023-12-04 18:24:57 +01:00
  • 4b3b895622 don't setup subscriptions on the server-side Nicolas "Norswap" Laurent 2023-12-04 18:24:28 +01:00
  • f7bffe23d0 lint unused imports Nicolas "Norswap" Laurent 2023-12-04 18:07:25 +01:00
  • e9c830e3dd make defaultThrottlePeriod a constant in constants.ts Nicolas "Norswap" Laurent 2023-12-04 18:07:09 +01:00
  • 390b2e08c7 fix error code filtering that caused all console.error to be filtered out Nicolas "Norswap" Laurent 2023-12-04 18:06:01 +01:00
  • ab72bddd18 rename throttled-fetch.ts to throttledFetch.ts Nicolas "Norswap" Laurent 2023-12-04 18:05:20 +01:00
  • 08d5cb896e fix bug that would navigate to home page and forth when reloading the play page Nicolas "Norswap" Laurent 2023-12-04 17:24:17 +01:00
  • 09641b45ca misc ns/ui-fixes Nicolas "Norswap" Laurent 2023-12-12 23:48:43 +01:00
  • 79d387e7f8 make the random selection of first player not susceptible to transaction races Nicolas "Norswap" Laurent 2023-12-12 23:37:27 +01:00
  • 7e21d67eb7 misc cleanup Nicolas "Norswap" Laurent 2023-12-12 23:37:10 +01:00