diff --git a/GUI/.prettierrc.json b/GUI/.prettierrc.json
index 29a2402..334a585 100644
--- a/GUI/.prettierrc.json
+++ b/GUI/.prettierrc.json
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
- "semi": false,
+ "semi": true,
"singleQuote": true,
"printWidth": 100
}
diff --git a/GUI/src/Layout.vue b/GUI/src/Layout.vue
index f63f0ca..edafb16 100644
--- a/GUI/src/Layout.vue
+++ b/GUI/src/Layout.vue
@@ -1,4 +1,5 @@
-
+
diff --git a/GUI/src/components/game/Field.vue b/GUI/src/components/game/Field.vue
index df6ac14..0f621bd 100644
--- a/GUI/src/components/game/Field.vue
+++ b/GUI/src/components/game/Field.vue
@@ -1,12 +1,14 @@
-
+
\ No newline at end of file
diff --git a/GUI/src/scripts/classes/.gitkeep b/GUI/src/scripts/classes/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/GUI/src/scripts/interfaces/.gitkeep b/GUI/src/scripts/interfaces/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/GUI/src/scripts/interfaces/FieldSize.ts b/GUI/src/scripts/interfaces/FieldSize.ts
new file mode 100644
index 0000000..548452d
--- /dev/null
+++ b/GUI/src/scripts/interfaces/FieldSize.ts
@@ -0,0 +1,5 @@
+export interface FieldSize {
+ x: number,
+ y: number
+}
+
diff --git a/GUI/src/scripts/logic/localMode/LocalGame.ts b/GUI/src/scripts/logic/localMode/LocalGame.ts
new file mode 100644
index 0000000..0a61086
--- /dev/null
+++ b/GUI/src/scripts/logic/localMode/LocalGame.ts
@@ -0,0 +1,25 @@
+import type { FieldSize } from '@/scripts/interfaces/FieldSize.ts'
+
+class LocalGame {
+ public field: number[][]
+
+ private currentPlayer: number = 1;
+ constructor(fieldSize: FieldSize) {
+ this.field = Array.from({ length: fieldSize.y }, () => Array(fieldSize.x).fill(0))
+ }
+
+ place(locationX: number): void {
+ for (let y = this.field.length - 1; y >= 0; y--) {
+ const row = this.field[y]
+
+ if (row && row[locationX] === 0) {
+ row[locationX] = this.currentPlayer
+ break
+ }
+ }
+
+ this.currentPlayer = this.currentPlayer === 1 ? 2 : 1
+ }
+}
+
+export default LocalGame
\ No newline at end of file