diff options
-rw-r--r-- | draughts/game.js | 8 | ||||
-rw-r--r-- | 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 @@ <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> |