-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
37 lines (37 loc) · 2.69 KB
/
index.html
File metadata and controls
37 lines (37 loc) · 2.69 KB
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
<html>
<head>
<title>Number Game</title>
<!-- Bootstrap requirements -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<script src="js/core.js"></script>
<body>
<div class="text-center">
<h1 class="display-3">Welcome to Number Game</h1>
<p class="lead">Choose who wants to start the game!</p>
<div class="d-flex flex-column">
<div class="p-2"><button type="button" class="btn btn-outline-danger btn-lg" onclick="firstclick(1)">Artificial Intelligence</button></div>
<div class="p-2"><button type="button" class="btn btn-outline-primary btn-lg" onclick="firstclick(2)">Yourself</button></div>
</div>
</div>
<div class = "container" style="margin-top: 7px;">
<p class="lead">
This game is based on the choice you take above. If you choose the "Artificial Intelligence" first,
the AI will play the first round and shows you the resulting result. If you choose Yourself you need to start the game.
The game will finish till the end of the numbers available. Whoever get's the top point wins the game.
</p>
<p class="lead">
<u>INSTRUCTION: </u>The game starts with some given numbers. The numbers are random as well as the points you have.
Your points will be deducted based on number you choose. That is if you choose 2, and your point is 10, your point will be deducted
to 8. So, Like that the game goes on. The game will finish when you reach a state where there is no numbers available. And when you reach
that state, Whoever has the maximum points wins the game. That is if AI has the maximum points he wins, else if the human as maximum he wins.
The winner of the game will displayed there.
</p>
</div>
</body>
<!-- Bootstrap requirements -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<!-- Bootstrap requirements -->
</html>