diff --git a/.gitignore b/.gitignore index 7337ecfb..15b81f0e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ logs/ *.log .env report*.json +commands/games-mp/poker.js diff --git a/structures/cards/Card.js b/structures/cards/Card.js index 836ae749..6906a818 100644 --- a/structures/cards/Card.js +++ b/structures/cards/Card.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;