euchre-live

Euchre web-app for the socially distant family
git clone git://git.alexkarle.com/euchre-live.git
Log | Files | Refs | README | LICENSE

commit 5136331c667603e5e81bad08c80aee8cd4404d44 (patch)
parent a5f03d724c1a9e59e8bb11a56e3be48ec15e6fde
Author: Alex Karle <alex@karle.co>
Date:   Wed,  6 May 2020 00:39:24 -0400

debug.html: Remove Force Join button

This is no longer a supported action. With the separation of Players and
hands, we can have players drop in and out willy nilly and not lose game
state. As such, there's no reason to support forcefully joining a game
and booting a current player.

If someone loses a connection, we kick them immediately and they can
still then join under the same name.

Diffstat:
Mpublic/debug.html | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/public/debug.html b/public/debug.html @@ -67,12 +67,12 @@ } }; - function joinGame(force) { + function joinGame() { uname = document.getElementById('username').value; gname = document.getElementById('gamename').value; pass = document.getElementById('password').value; console.log('U: ' + uname + ' G: ' + gname); - ws.send(JSON.stringify({action:'join_table', player_name: uname, table: gname, force: force, password: pass})) + ws.send(JSON.stringify({action:'join_table', player_name: uname, table: gname, password: pass})) } function sit() { seat = document.getElementById('seat_no').value; @@ -119,7 +119,6 @@ <label for="password">Password:</label> <input type="text" id="password"> <button onclick="joinGame(0)">Join Game</button> - <button onclick="joinGame(1)">Force Join</button> <button onclick="leaveGame()">Leave Game</button> <br><br> <label for="seat_no">Seat:</label>