diff --git a/client/.prettierrc b/client/.prettierrc
index ff2677e..ab96ecc 100644
--- a/client/.prettierrc
+++ b/client/.prettierrc
@@ -1,6 +1,7 @@
{
- "useTabs": true,
- "singleQuote": true,
- "trailingComma": "none",
- "printWidth": 100
-}
+ "useTabs": false,
+ "tabWidth": 2,
+ "singleQuote": true,
+ "trailingComma": "none",
+ "printWidth": 100
+}
\ No newline at end of file
diff --git a/client/src/lib/backButton.svelte b/client/src/lib/backButton.svelte
new file mode 100644
index 0000000..0c77f27
--- /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..bbe1e5f 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}