From 5e207ab59b3d5ce2ce316d8727886aa66147f758 Mon Sep 17 00:00:00 2001 From: stale Date: Sun, 21 Aug 2022 04:53:12 -0300 Subject: questioning tiles and irc bot mess --- assets/client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'assets/client.js') diff --git a/assets/client.js b/assets/client.js index f5558a7..e1218ba 100644 --- a/assets/client.js +++ b/assets/client.js @@ -168,7 +168,7 @@ function acceptBoard(data) { let split_board = []; for (let i = 1; i < room.board.length+1; i++) { let cur = room.board[i]; - let gamechars = /^[CFO# 1-8]+$/; + let gamechars = /^[CFQO# 1-8]+$/; if ((cur != last && gamechars.test(cur)) || cur == undefined) { let txt = room.board.substr(last_idx, i-last_idx); switch(txt[0]) { @@ -181,6 +181,10 @@ function acceptBoard(data) { case 'F': txt = `${txt}`; break; + case 'Q': + txt = txt.replaceAll("Q", "?"); + txt = `${txt}`; + break; case '1': txt = `${txt}`; break; case '2': txt = `${txt}`; break; -- cgit v1.2.3