cleanup
This commit is contained in:
parent
1b9ccc65ab
commit
abccd2e51a
@ -12,8 +12,7 @@
|
|||||||
player: player,
|
player: player,
|
||||||
card: c
|
card: c
|
||||||
};
|
};
|
||||||
//window.game_socket.send("playcard "+player+":"+card);
|
let t = JSON.stringify(msg);
|
||||||
t = JSON.stringify(msg);
|
|
||||||
window.game_socket.send(t);
|
window.game_socket.send(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25,8 +24,7 @@
|
|||||||
player: player,
|
player: player,
|
||||||
color: color
|
color: color
|
||||||
};
|
};
|
||||||
//window.game_socket.send("setTrumpColor "+player+":"+color)
|
let t = JSON.stringify(msg);
|
||||||
t = JSON.stringify(msg);
|
|
||||||
window.game_socket.send(t);
|
window.game_socket.send(t);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<meta name="description" content="pyramid web application">
|
<meta name="description" content="pyramid web application">
|
||||||
<meta name="author" content="Pylons Project">
|
<meta name="author" content="Pylons Project">
|
||||||
|
|
||||||
<title>Free Online Gamblingc</title>
|
<title>Free Online Gambling</title>
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
<!-- Bootstrap core CSS -->
|
||||||
<link href="//oss.maxcdn.com/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
|
<link href="//oss.maxcdn.com/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
|
||||||
@ -33,8 +33,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
socket.onmessage = function(event) {
|
socket.onmessage = function(event) {
|
||||||
//alert(`[message] Data received from server: ${event.data}`);
|
|
||||||
//if (event.data == "reload") {
|
|
||||||
let x = JSON.parse(event.data);
|
let x = JSON.parse(event.data);
|
||||||
let fct = x.fct;
|
let fct = x.fct;
|
||||||
if (fct == "reload") {
|
if (fct == "reload") {
|
||||||
|
@ -88,16 +88,6 @@ async def websocket(ws):
|
|||||||
else:
|
else:
|
||||||
print("confused :(")
|
print("confused :(")
|
||||||
|
|
||||||
# cmd = await ws.receive_text()
|
|
||||||
# fct, args = cmd.split()
|
|
||||||
# if fct == "playcard":
|
|
||||||
# p, c = map(int, args.split(':'))
|
|
||||||
# await play_card(p, c)
|
|
||||||
# elif fct == "setTrumpColor":
|
|
||||||
# player, color = args.split(':')
|
|
||||||
# await set_trump_color(player, color)
|
|
||||||
|
|
||||||
|
|
||||||
except WebSocketDisconnect:
|
except WebSocketDisconnect:
|
||||||
the_game.websockets.remove(ws)
|
the_game.websockets.remove(ws)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user