diff --git a/client/src/lib/backButton.svelte b/client/src/lib/backButton.svelte
new file mode 100644
index 0000000..710ba64
--- /dev/null
+++ b/client/src/lib/backButton.svelte
@@ -0,0 +1,22 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/client/src/lib/config.ts b/client/src/lib/config.ts
new file mode 100644
index 0000000..e76ff66
--- /dev/null
+++ b/client/src/lib/config.ts
@@ -0,0 +1 @@
+export const DEFAULT_TRANSITION_DURATION = 400;
\ No newline at end of file
diff --git a/client/src/lib/game.svelte b/client/src/lib/game.svelte
index b84ac88..2590e67 100644
--- a/client/src/lib/game.svelte
+++ b/client/src/lib/game.svelte
@@ -3,6 +3,8 @@
import { quadOut } from "svelte/easing";
import { draw, fade, fly } from "svelte/transition";
import Move from "./move.svelte";
+ import { DEFAULT_TRANSITION_DURATION } from "./config";
+ import BackButton from "./backButton.svelte";
export var self: 1 | 2 = 1;
export var twoPlayer: boolean = false;
@@ -172,7 +174,7 @@
var movesShown = false;
- const duration = 400;
+ const duration = DEFAULT_TRANSITION_DURATION;
var moveDelayMultiplier = 1;
onMount(() => {
@@ -189,13 +191,7 @@
hoveredPiece = null} />
-
-
-
+
{#if !twoPlayer}