-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
97 lines (92 loc) · 3.52 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<html>
<head>
<title>Connect 4</title>
<link rel="stylesheet" href="style.css">
<script src="connect4.js"></script>
<script src="main.js"></script>
</head>
<body>
<div class="top">
<header>
<img src="http://www.giantpartygames.co.uk/wp-content/uploads/2014/09/Connect-4-Header.png" alt="logo">
</header>
</div>
<div class="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#instructions">Instructions</a></li>
<li><a href="#configuration">Configuration</a></li>
<li id="play"><a href="#connect4">Play!</a></li>
<li><a href="#ratings">Ratings</a>
<li><button onclick="on()">Sign up|Sing in</button></li>
</ul>
</div>
<div id="overlay">
<button id="closebtn" onclick="off()">Close</button>
<div id="loginform">
<h6>Sign in!</h6>
<input name="login" id="login" placeholder="Username" type="text">
<input name="password" id="pass" placeholder="Password" type="password">
<br>
<button id="signinbutton" onclick="signIn()">Sign in</button>
<button id="regbutton" onclick="signUp()">Sign up</button>
</div>
</div>
<div id="instructions">
<h3>Instructions</h3>
<p><strong>Connect Four </strong>(also known as Captain's Mistress, Four Up, Plot Four, Find Four, Four in a Row, Four in a Line and Gravitrips (in Soviet Union)) is a two-player connection game in which the players first choose a color and then take turns dropping one colored disc from the top into a seven-column, six-row vertically suspended grid.
The pieces fall straight down, occupying the lowest available space within the column.
The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs.
Connect Four is a solved game. The first player can always win by playing the right moves.
<br>
<strong>Enter </strong><i>Computer</i> if you want to play againt computer
</p>
</div>
<div id="container">
<div id="ratings" class="table-cell">
<h3>Ratings</h3>
<button id="results" onclick="showResults()">Show results!</button>
<button id="results2" onclick="showResults2()">Show results againt other players!</button>
<div id="ratingsList">
</div>
</div>
<div id="configuration" class="table-cell">
<h3>Configuration</h3>
<form>
<div class="row_column">
<input name="row" id="rows" placeholder="Rows" type="number" value=8>
<input name="column" id="columns" placeholder="Columns" type="number" value=8>
</div>
<div class="names">
<input name="player1" id="player1_name" placeholder="Players 1 name" type="text" value="Guest">
<br>
<input name="player2" id="player2_name" placeholder="Players 2 name" type="checkbox" value="Computer">Do you want to play against computer?<br>
</div>
<div class="starts">
<select name="Who starts?" id="firstToStart">
<option value=1>First player</option>
<option value=2>Second player</option>
</select>
</div>
<div class="difficulty">
<select name="Difficulty" id="level">
<option value=1>Easy</option>
<option value=2>Hard</option>
</select>
</div>
<button id="submit" type="button">Submit</button>
</form>
<br>
<button id="giveup" type="button">Give up</button>
</div>
</div>
<canvas id="layer6" class="anim_6"></canvas>
<canvas id="layer8" class="anim_8"></canvas>
<canvas id="layer7"class="anim_7"></canvas>
<div id="connect4">
<canvas id="waitingCanvas"></canvas>
</div>
<br>
<h4 id="turn"></h4>
</body>
</html>