summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/play.js b/play.js
index e58e027..beb62e1 100644
--- a/play.js
+++ b/play.js
@@ -1003,10 +1003,10 @@ const colorize_3 = '<span class="value deck_3">$1</span>'
const colorize_4 = '<span class="value deck_4">$1</span>'
function colorize(text) {
- text = text.replace(/1\^(\d+)/g, colorize_1)
- text = text.replace(/2\^(\d+)/g, colorize_2)
- text = text.replace(/3\^(\d+)/g, colorize_3)
- text = text.replace(/4\^(\d+)/g, colorize_4)
+ text = text.replace(/1\^(\d+[\u2660\u2663\u2665\u2666R])/g, colorize_1)
+ text = text.replace(/2\^(\d+[\u2660\u2663\u2665\u2666R])/g, colorize_2)
+ text = text.replace(/3\^(\d+[\u2660\u2663\u2665\u2666R])/g, colorize_3)
+ text = text.replace(/4\^(\d+[\u2660\u2663\u2665\u2666R])/g, colorize_4)
text = text.replace(/(\d+)R/g, colorize_R)
text = text.replaceAll("\u2660", colorize_S)
text = text.replaceAll("\u2663", colorize_C)
@@ -1099,10 +1099,10 @@ function on_update() {
for (let pow of all_major_powers) {
ui.pc_placed[pow].replaceChildren()
- for (let tc of view.saved[pow])
+ for (let tc of view.face_up[pow])
+ ui.pc_placed[pow].appendChild(show_tc(tc))
+ for (let tc of view.face_down[pow])
ui.pc_placed[pow].appendChild(show_tc(tc))
- if (view.placed && view.placed[pow] >= 0)
- ui.pc_placed[pow].appendChild(show_tc(view.placed[pow]))
}
ui.pc_show.replaceChildren()