-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (72 loc) · 3.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- HTML Meta Tags -->
<title>Hex Chess</title>
<meta name="description" content="Play Hexagonal Chess in your browser">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://deniz.is-a.dev/hexchessjs">
<meta property="og:type" content="website">
<meta property="og:title" content="Hex Chess">
<meta property="og:description" content="Play Hexagonal Chess in your browser">
<meta property="og:image" content="https://files.catbox.moe/it8gs7.png">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="deniz.is-a.dev">
<meta property="twitter:url" content="https://deniz.is-a.dev/hexchessjs">
<meta name="twitter:title" content="Hex Chess">
<meta name="twitter:description" content="Play Hexagonal Chess in your browser">
<meta name="twitter:image" content="https://files.catbox.moe/it8gs7.png">
<!-- Meta Tags Generated via https://www.opengraph.xyz -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hex Chess</title>
</head>
<body>
<h1>Hexagonal Chess Board</h1>
<canvas width="500" height="500" id="board"></canvas>
<script src="game.js"></script>
<h4>---Currently missing features & excuses---</h4>
- Win/Lose system: Check yourself <br>
- Check and mate detection: Check yourself <br>
- "En Passant": Idk how to <br>
- Turn system: Check yourself <br>
- AI: Idk how to <br>
<h4>---Credits---</h4>
Built by: <a href="https://deniz.is-a.dev">Deniz Tunç</a> with just Javascript
<br>
Inspired by: <a href="https://www.youtube.com/watch?v=bgR3yESAEVE">CGP Grey</a>
<br>
Reference for rules & board: <a href="https://en.wikipedia.org/wiki/Hexagonal_chess">Wikipedia</a>
<br>
Image Credits:
<a href="https://commons.wikimedia.org/wiki/File:Chess_kdt45.svg">Cburnett</a>, <a
href="http://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a>, via Wikimedia Commons
<div id="pieces" onload="console.log('loaded')">
<img src="https://upload.wikimedia.org/wikipedia/commons/f/f0/Chess_kdt45.svg" id="kd">
<img src="https://upload.wikimedia.org/wikipedia/commons/4/47/Chess_qdt45.svg" id="qd">
<img src="https://upload.wikimedia.org/wikipedia/commons/f/ff/Chess_rdt45.svg" id="rd">
<img src="https://upload.wikimedia.org/wikipedia/commons/9/98/Chess_bdt45.svg" id="bd">
<img src="https://upload.wikimedia.org/wikipedia/commons/e/ef/Chess_ndt45.svg" id="nd">
<img src="https://upload.wikimedia.org/wikipedia/commons/c/c7/Chess_pdt45.svg" id="pd">
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/4/42/Chess_klt45.svg" id="kl">
<img src="https://upload.wikimedia.org/wikipedia/commons/1/15/Chess_qlt45.svg" id="ql">
<img src="https://upload.wikimedia.org/wikipedia/commons/7/72/Chess_rlt45.svg" id="rl">
<img src="https://upload.wikimedia.org/wikipedia/commons/b/b1/Chess_blt45.svg" id="bl">
<img src="https://upload.wikimedia.org/wikipedia/commons/7/70/Chess_nlt45.svg" id="nl">
<img src="https://upload.wikimedia.org/wikipedia/commons/4/45/Chess_plt45.svg" id="pl">
</div>
</body>
<style>
body {
background-color: lightsteelblue;
text-align: center;
}
canvas {
margin: auto;
background-color: white;
}
</style>
</html>