mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
Beep
This commit is contained in:
@@ -4,3 +4,4 @@ logs/
|
||||
*.log
|
||||
.env
|
||||
report*.json
|
||||
commands/games-mp/poker.js
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const { firstUpperCase } = require('../../util/Util');
|
||||
const displaySuits = {
|
||||
spades: '♠',
|
||||
diamonds: '♦',
|
||||
@@ -23,6 +24,10 @@ module.exports = class Card {
|
||||
return `${displaySuits[this.suit]} ${this.value}`;
|
||||
}
|
||||
|
||||
get textDisplay() {
|
||||
return `${this.value} of ${firstUpperCase(this.suit)}`;
|
||||
}
|
||||
|
||||
get pokersolverKey() {
|
||||
if (this.value === 'Joker') return null;
|
||||
let suitLetter;
|
||||
|
||||
Reference in New Issue
Block a user