-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
56 lines (53 loc) · 2.03 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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<style type="text/css">
body {
margin: 10px;
}
</style>
</head>
<body id="body">
<div>
<canvas width="640" id="canvas" height="640">HTML5 canvas is not supported by your browser, newest Google Chrome is recommended
</canvas>
</div>
<div>
<h2>Game Settings</h2>
<input type="text" id="room" placeholder="game id">
<input type="button" id="enter" value="Enter Game"> <br />
<input type="text" id="opponent" placeholder="opponent">
<input type="button" id="create" value="Create Game"> <br />
<input type="text" size="40" id="host" placeholder="node url" value="http://13.52.105.102:30001">
<input type="text" size="72" id="contractID" placeholder="Smart contract ID" value="ContractALovXuyzCRgdhshBR3DNyFzYFupBpofDcutriqj23dpJ">
<br />
</div>
<div>
<h2>Wallet Settings:</h2>
<input type="text" id="account" placeholder="account">
<input type="text" id="seckey" size="72" placeholder="seckey">
<select id="alg">
<option value="secp">Secp256k1</option>
<option value="ed" selected="selected">Ed25519</option>
</select> <br />
<input type="button" id="new_account" value="get a test account">
</div>
<div>
<p id="info"></p>
</div>
<div>
<h2>How to play</h2>
<p>1. Input your IOST account and base58-encoded seckey to wallet settings. Or simply click "get a test account"</p>
<p>2.a As a host, input opponent in Game Settings, and click Create Game. Then the game starts and game id appears</p>
<p>2.b As a guest, input the game id and click Enter Game </p>
<p>3. play with your opponent</p>
<p><b>Notice</b></p>
<p>1. There are bugs when you play with yourself, so opponent should be different from your account</p>
<p>2. Please report bugs in github issues</p>
<p>Thank you</p>
</div>
</body>
<script type="text/javascript" src="src/bundle.js" ></script>
</html>