Sort cards C D S H so same-colour suits aren't adjacent

Reorder the suit sort (hand + widow overlay) to alternate colours
(clubs, diamonds, spades, hearts) so hearts and diamonds no longer sit
next to each other.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
goyban
2026-07-20 18:11:12 +00:00
parent 66a9e59db6
commit 23ae455ec1
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1037,7 +1037,7 @@ function renderWidowOverlay(st) {
updateWidowPreview(st);
}
const WIDOW_SUIT_ORDER = ['C', 'D', 'H', 'S'];
const WIDOW_SUIT_ORDER = ['C', 'D', 'S', 'H'];
const WIDOW_SUIT_LABEL = { C: '♣', D: '♦', H: '♥', S: '♠' };
const WIDOW_JOKER_LABEL = { 'JOKER-COLOR': '🌈', 'JOKER-BLACK': '⚫' };