1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
+
3
4
< head >
4
5
< meta charset ="UTF-8 ">
5
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
7
< title > Connect Four</ title >
7
-
8
+
8
9
<!-- 👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻-->
9
10
<!-- Also uploaded the demo of this code in a gif : https://c.tenor.com/x8v1oNUOmg4AAAAd/tenor.gif-->
10
11
<!-- 👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻-->
11
12
12
13
<!-- 👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻-->
13
- <!-- More html-css-js Games Calculators Games Cards Elements Projects on https://www.github.com/he-is-talha -->
14
+ <!-- More html-css-js Games Calculators Games Cards Elements Projects on https://www.github.com/he-is-talha -->
14
15
<!-- 👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻-->
15
16
16
- < link rel ="icon " href ="https://leoncoolmoon.github.io/icon.png ">
17
+ < link rel ="icon " href ="https://leoncoolmoon.github.io/icon.png ">
17
18
18
19
<!-- Google Fonts -->
19
20
< link rel ="preconnect " href ="https://fonts.gstatic.com ">
23
24
< link rel ="stylesheet " href ="style.css ">
24
25
25
26
</ head >
27
+
26
28
< body >
27
29
< div id ="grid-config ">
28
- < div class ="input-group ">
29
- < label for ="grid-width "> Columns:</ label >
30
- < input type ="number " id ="grid-width " min ="3 " max ="20 " value ="10 ">
31
- </ div >
32
- < div class ="input-group ">
33
- < label for ="grid-height "> Rows:</ label >
34
- < input type ="number " id ="grid-height " min ="3 " max ="20 " value ="10 ">
35
- </ div >
36
- < div class ="input-group ">
37
- < label for ="win-condition "> Win Condition:</ label >
38
- < input type ="number " id ="win-condition " min ="3 " max ="8 " value ="5 ">
39
- </ div >
30
+ < fieldset >
31
+ < legend > Game Settings:</ legend >
32
+ < div class ="input-group ">
33
+ < label for ="grid-width "> Columns:</ label >
34
+ < input type ="number " id ="grid-width " min ="3 " max ="20 " value ="10 ">
35
+ </ div >
36
+ < div class ="input-group ">
37
+ < label for ="grid-height "> Rows:</ label >
38
+ < input type ="number " id ="grid-height " min ="3 " max ="20 " value ="10 ">
39
+ </ div >
40
+ < div class ="input-group ">
41
+ < label for ="win-condition "> Win Condition:</ label >
42
+ < input type ="number " id ="win-condition " min ="3 " max ="8 " value ="5 ">
43
+ </ div >
44
+ </ fieldset >
45
+ < fieldset >
46
+ < legend > Player Settings:</ legend >
47
+ < div >
48
+ < input type ="radio " id ="hvh " name ="player " value ="0 " />
49
+ < label for ="hvh "> human vs. human</ label >
50
+ </ div >
51
+ < div >
52
+ < input type ="radio " id ="hvc " name ="player " value ="1 " checked />
53
+ < label for ="hvc "> human vs. computer</ label >
54
+ </ div >
55
+ < div >
56
+ < input type ="radio " id ="cvh " name ="player " value ="2 " />
57
+ < label for ="cvh "> computer vs. human</ label >
58
+ </ div >
59
+
60
+ </ fieldset >
40
61
< button id ="update-grid "> OK</ button >
41
- </ div >
62
+ </ div >
42
63
< div id ="main-container ">
43
64
< div id ="player ">
44
65
< h1 id ="player-type "> Player - 1</ h1 >
@@ -50,4 +71,5 @@ <h1 id="player-type">Player - 1</h1>
50
71
< script src ="script.js "> </ script >
51
72
52
73
</ body >
74
+
53
75
</ html >
0 commit comments