Skip to content

Commit

Permalink
Fix pages deploy dir 1273b6b
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyEarley committed Jul 16, 2023
1 parent 0640525 commit 4edc623
Show file tree
Hide file tree
Showing 4 changed files with 405 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gogogo-frontend.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions gogogo-frontend.js.map

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="color-scheme" content="dark light">
<!-- currently breaks the layout -->
<!-- <meta name="viewport" content="width=device-width, initial-scale=1">-->
<title>GoGoGo</title>
<link rel="stylesheet" href="style.css">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
</head>
<body>
<script type="text/javascript" src="gogogo-frontend.js"></script>

<div id="dark-mode-div">
<label id="dark-mode-label" for="dark-mode">Dark mode</label>
<input id="dark-mode" type="checkbox"/>
</div>

<h1>GoGoGo</h1>

<div id="menu" class="center">
<ul id="main-menu">
<li><button id="btn-play-local" class="btn">Play local</button></li>
<li><button id="btn-play-online" class="btn">Play online</button></li>
<li><button id="btn-rules" class="btn">Rules</button></li>
</ul>

<div id="rules" class="hidden">
<p>The goal is simple: reach the other end. The rules of movement are:</p>
<ol>
<li>Each turn, move one piece to an adjacent square.</li>
<li>You may push at most one other piece along with you.</li>
<li>The pushed piece is immobilized; it cannot move during the opponent's turn.</li>
<li>If a piece falls off the edge it's gone</li>
<li>If you have no moves available you lose.</li>
</ol>
<button id="btn-back" class="btn" >Return</button>
</div>
</div>

<div id="game-ui" class="hidden">
<button id="btn-exit-game" class="center btn btn-red btn-small">◀ Exit</button>

<p id="turn-indicator">Blue's turn</p>

<div id="game">
<div id="connect-spinner" class="lds-dual-ring"></div>
<table id="game-grid"></table>
<div id="sidebar" class="hidden">
<h3>Lines</h3>
<ul id="lines"></ul>
</div>
</div>

<div class="center" id="local-controls">
<select id="blue-controller"></select>
vs.
<select id="red-controller"></select>

<div id="local-btns">
<!--TODO FIX These buttons are synchronised - click on one and both go down -->
<button id="btn-undo" class="btn btn-small">Undo</button>
<button id="btn-restart" class="btn btn-small">Restart</button>
</div>
</div>

<div class="center" id="server-controls">
<p id="server-own-player"></p>
</div>

</div>
</body>
</html>
Loading

0 comments on commit 4edc623

Please sign in to comment.