-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (98 loc) · 3.15 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
98
99
100
101
102
103
104
105
106
107
108
<html>
<head>
<title>solver</title>
<style>
html, body {
margin: 0;
}
.row {
display: flex;
height: 100%;
width: 100%;
}
.columnw1 {
width: 25%;
height: 100%;
background-color: cadetblue;
}
.columnw2 {
position: relative;
width: 50%;
height: 100%;
background-color: crimson;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
}
.columnw2 > .container {
position: relative;
top: -600px;
}
.gameboard {
position: relative;
left: 50%;
transform: translateX(-50%);
height: 600px;
width: 600px;
background-color: rgba(red, green, blue, 0.5);
}
.gameboardbackground {
position: relative;
transform: translateX(-50%);
left: 50%;
width: 0;
height: 0;
border-left: 300px solid transparent;
border-right: 300px solid transparent;
border-bottom: 600px solid sienna;
}
.pinrow {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.pin {
width: 50px;
height: 50px;
background-color: whitesmoke;
border-radius: 50%;
margin-right: 6%;
margin-left: 6%;
}
#nextmove {
width: 100%;
text-align: center;
}
</style>
<script src="solver.js"></script>
</head>
<body>
<div class="row">
<div class="columnw1"></div>
<div class="columnw2">
<label for="gameSizeInput">Size of gameboard (between 4 and 10):</label>
<input type="number" id="gameSizeInput" name="size" min="4" max="10">
<button id="generateGameButton">generate gameboard</button>
<div class="gameboardbackground"></div>
<div class="container">
<div class="container gameboard">
</div>
<h2 id="nextmove">
</h2>
<button id="nextmovebutton">
show next move
</button>
<button id="givesolution">
give solution
</button>
</div>
</div>
<div class="columnw1"></div>
</div>
</body>
<script src="main.js"></script>
</html>