-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (102 loc) · 1.75 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
109
110
111
112
<html>
<head>
<script type="text/javascript" src="./mydefs02.js">
</script>
<script type="text/javascript" src="./bullscows05.js">
</script>
<style type="text/css">
body
{
background-image:url("miniature_bucking_bulls_bred_cows_500_cortez_co_29715983_flat.jpg");
}
h1
{
color:white;
text-align:center;
}
div
{
font-family:"Times New Roman";
font-size:36px;
color:#bcd;
}
select
{
width:"2em";
font-size:32px;
background-color:#abc;
color:#640;
}
input
{
font-size:24px;
background-color:#bca;
color:#406;
}
span.bull {color:fff;font-weight:bold}
span.cow {color:ff0;font-weight:bold}
#score
{
margin-top:10px;
padding-bottom:10px;
font-weight:bold;
}
#score-left
{
float:left;
margin-left:0px;
width:100px;
}
#score-right
{
float:left;
margin-left:100px;
width:100px;
}
</style>
</head>
<body>
<h1>Bulls & Cows<br />
<input type="button" value="Instructions" onclick="showinstructions()" />
</h1>
<br />
<br />
<div id="optionsdiv">
<form>
Number of Letters:
<script>
makeselector("NumDigSelector","setNumDigits()")
loadselector(2,10,"NumDigSelector",false)
</script>
<br />
Length of Word:
<script>
makeselector("LengthSelector","setWordLength()")
loadselector(2,6,"LengthSelector",false)
</script>
<br />
<br />
<input type='button' onclick='newgame()' value='Start/New Game' />
<input type='button' onclick='globalguesser.solve()' value='AutoSolve' />
</form>
</div>
<br /><br />
<div id="playdiv">
Playing Field
</div>
<div id="historydiv">
History goes here.
</div>
<br /><br />
<div id="score">
Score
</div>
<div id="score-left">
Human: 0
</div>
<div id="score-right">
Computer: 0
</div>
</body>
</html>