-
Notifications
You must be signed in to change notification settings - Fork 0
/
othello.html
89 lines (74 loc) · 3.05 KB
/
othello.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
<html>
<head>
<title>Othello AI Player</title>
<link rel="stylesheet" href="othelloView.css">
</head>
<body>
<div class="container">
<div class="title">Settings</div>
<div class="content">
<form action="#">
<div class="user-details">
<div class="mode-details">
<input type="radio" name="mode" id="dot-1" onchange="ResetGamingboard()">
<input type="radio" name="mode" id="dot-2" checked onchange="ResetGamingboard()">
<input type="radio" name="mode" id="dot-3"onchange="ResetGamingboard()">
<span class="mode-title">Mode</span>
<div class="category">
<label for="dot-1">
<span class="dot one"></span>
<span class="mode">Human Vs Human</span>
</label>
<label for="dot-2">
<span class="dot two"></span>
<span class="mode">Human Vs Computer</span>
</label>
<label for="dot-3">
<span class="dot three"></span>
<span class="mode">Computer Vs Computer</span>
</label>
</div>
</div>
<br>
<div class="input-box" id="input-box-1">
<span class="details">Difficulty level of player Black</span>
<input type="number" id="AI1" name="quantity" placeholder="1" min="1" max="8" oninput="ResetGamingboard()">
</div>
<div class="input-box" id="input-box-2">
<span class="details">Difficulty level of player White</span>
<input type="number" id="AI2" name="quantity" placeholder="1" min="1" max="8" oninput="ResetGamingboard()" >
</div>
<div class="input-box" id="input-box-3">
<span class="details">Difficulty level of AI</span>
<input type="number" id="AI" name="quantity" placeholder="1" min="1" max="5" oninput="ResetGamingboard()" >
</div>
</div>
<div class="buttons">
<div class="button">
<input type="submit" value="Play" onclick="assign(event)">
</div>
<div class="button">
<input type="reset" value="Reset" onclick="location.reload()" id="button-reset">
</div>
</div>
</form>
</div>
</div>
<div class="game">
<div id="blackBackground"></div>
</div>
<div id="discLayer"></div>
<div id="score">
Turn: Black <br>
Black: 2 | White: 2 </div>
<div id="canMoveLayer"></div>
<script src="othelloController.js"></script>
<div class="popup-message">
<p class="message" id="winnerMessage"></p>
</div>
<div class="Overlay" onclick="showPopupMessage('Please Adjust Setting And Press Play First')">
<p id="Overlay-1" ></p>
</div>
</body>
</body>
</html>