Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

implemented up to 4 player mode #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,23 @@
</head>
<body>
<center>
<div class="undo" id="undo">
<p>UNDO</p>
</div>
<div>
<div class="undo" id="undo">
<p>UNDO</p>
</div>
<div>
<p class="numOfPlayersTag">Num of Players:</p>
<div class="numOfPlayersDropDown">
<form>
<select id="numOfPlayers" onchange="setNumberOfPlayers()">
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
</select>
</form>
</div>
</div>
</div>
<canvas width="420" height="630" id="arena">
Canvas tag not supported!
</canvas>
Expand All @@ -22,5 +36,6 @@
<script src="script.js"></script>
</center>
<div class='undoMessage' style='display:none' id ='undoError' >Only one move can be Undone!</div>
<div class='undoMessage' style='display:none' id ='changePlayerError' >Cannot change number of players after game has started!</div>
</body>
</html>
Loading