From ecb889227590cd84a23cc3b4fa702d7c25cd7559 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 10 Jan 2022 00:23:47 +0100 Subject: Use tabs instead of spaces like a normal person --- draughts/game.js | 8 ++++---- draughts/public/splash.html | 47 ++++++++++++++++++++++----------------------- 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/draughts/game.js b/draughts/game.js index 748c696..a2ae886 100644 --- a/draughts/game.js +++ b/draughts/game.js @@ -26,12 +26,12 @@ const boardInit = () => [ * history and the websockets of both players. */ const Game = function(gameID) { - this.id = gameID - this.board = boardInit() - this.ongoing = false + this.id = gameID + this.board = boardInit() + this.ongoing = false this.bluePlayer = null this.redPlayer = null - this.history = [] /* [ { blue: "42x31", red: "19-24" }, ... ] */ + this.history = [] /* [ { blue: "42x31", red: "19-24" }, ... ] */ } /* Send the message `msg' to both players */ diff --git a/draughts/public/splash.html b/draughts/public/splash.html index 41639a3..57a44d8 100644 --- a/draughts/public/splash.html +++ b/draughts/public/splash.html @@ -7,32 +7,31 @@ Draughts -
-

Draughts

-

The record for the minimum amount of moves is: 32

-

The average player completes a game in 56 moves

-

There are 3 games currently ongoing

- +
+

Draughts

+

The record for the minimum amount of moves is: 32

+

The average player completes a game in 56 moves

+

There are 3 games currently ongoing

+ -
- -
+
+ +
+
-
- -
-

Move diagonally

-

Take pieces

-

Crown Kings

-
+
+

Move diagonally

+

Take pieces

+

Crown Kings

+
- + - \ No newline at end of file + -- cgit v1.2.3