From a39c2202428461167751f9b23c73479ad3e9f6c9 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sat, 21 Jan 2023 19:36:52 +0100 Subject: [PATCH] more motion --- client/src/lib/game.svelte | 15 +++++++++++---- client/src/routes/+page.svelte | 8 ++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/client/src/lib/game.svelte b/client/src/lib/game.svelte index b803f3f..1f16c97 100644 --- a/client/src/lib/game.svelte +++ b/client/src/lib/game.svelte @@ -196,7 +196,7 @@ - + @@ -205,7 +205,8 @@ {#if !twoPlayer} -
+ +
@@ -236,7 +237,13 @@
{#each classes as className, i} -
+
{#each (new Array(9)) as _, j} {@const moveIndex = moves.findIndex(cmove => cmove.i == i && cmove.j == j)} {@const move = moves[moveIndex]} @@ -330,7 +337,7 @@ {/if} {#key currentPlayer} -
+
{#if overallState == 1 || !overallState && currentPlayer == 1} diff --git a/client/src/routes/+page.svelte b/client/src/routes/+page.svelte index a6e37a0..1f56606 100644 --- a/client/src/routes/+page.svelte +++ b/client/src/routes/+page.svelte @@ -28,18 +28,18 @@ {#if shown}
-
+

Local multiplayer

-
+

A game for two on a single device

Online multiplayer

-
+

Play with 2 devices, even across the ocean.

@@ -107,7 +107,7 @@ @apply my-4 p-4 w-max m-auto h-100vh; } .chooser { - @apply grid grid-cols-2 items-center justify-center gap-8; + @apply grid items-center justify-center gap-8; } .chooser > a { @apply text-black no-underline cursor-pointer w-full p-8 border rounded-lg border-gray-400 border-solid;