aboutsummaryrefslogtreecommitdiff
path: root/draughts
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2022-01-10 00:23:47 +0100
committerThomas Voss <thomasvoss@live.com> 2022-01-10 00:23:47 +0100
commitecb889227590cd84a23cc3b4fa702d7c25cd7559 (patch)
treecd60481d2e6c52b926eadeade62da4e814b1acca /draughts
parent1987fb57136f9534899bcf9f07737a989cf29674 (diff)
Use tabs instead of spaces like a normal person
Diffstat (limited to 'draughts')
-rw-r--r--draughts/game.js8
-rw-r--r--draughts/public/splash.html47
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 @@
<title>Draughts</title>
</head>
<body>
- <section id="left">
- <h1>Draughts</h1>
- <p>The record for the minimum amount of moves is: 32</p>
- <p>The average player completes a game in 56 moves</p>
- <p>There are 3 games currently ongoing</p>
- <img src="images/players.png"></img>
+ <section id="left">
+ <h1>Draughts</h1>
+ <p>The record for the minimum amount of moves is: 32</p>
+ <p>The average player completes a game in 56 moves</p>
+ <p>There are 3 games currently ongoing</p>
+ <img src="images/players.png"></img>
- <form action="/play" method="get">
- <button type="submit">PLAY</button>
- </form>
+ <form action="/play" method="get">
+ <button type="submit">PLAY</button>
+ </form>
+ </section>
- </section>
-
- <section id="how-to">
- <p>Move diagonally</p>
- <p>Take pieces</p>
- <p>Crown Kings</p>
- </section>
+ <section id="how-to">
+ <p>Move diagonally</p>
+ <p>Take pieces</p>
+ <p>Crown Kings</p>
+ </section>
- <section id="right">
- <div id="decoration-left">
- <img src="images/oude-kerk.png"></img>
- <img src="images/raadshuis.png"></img>
- <img src="images/mill.png"></img>
- </div>
- </section>
+ <section id="right">
+ <div id="decoration-left">
+ <img src="images/oude-kerk.png"></img>
+ <img src="images/raadshuis.png"></img>
+ <img src="images/mill.png"></img>
+ </div>
+ </section>
</body>
-</html> \ No newline at end of file
+</html>