diff options
author | stale <redkugelblitzin@gmail.com> | 2022-08-21 04:53:12 -0300 |
---|---|---|
committer | stale <redkugelblitzin@gmail.com> | 2022-08-21 04:53:12 -0300 |
commit | 5e207ab59b3d5ce2ce316d8727886aa66147f758 (patch) | |
tree | 90ede1c22d238bf3c8bf6615701bb6803147588f /assets/client.js | |
parent | e28498c4953f2da5f56a41f3123a413efa9d9a25 (diff) |
questioning tiles and irc bot mess
Diffstat (limited to 'assets/client.js')
-rw-r--r-- | assets/client.js | 6 |
1 files changed, 5 insertions, 1 deletions
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 = `<span style="color:yellow;">${txt}</span>`; break; + case 'Q': + txt = txt.replaceAll("Q", "?"); + txt = `<span style="color:purple;">${txt}</span>`; + break; case '1': txt = `<span style="color:#0100FB;">${txt}</span>`; break; case '2': txt = `<span style="color:#027F01;">${txt}</span>`; break; |