This commit is contained in:
Dragon Fire
2020-05-11 09:33:58 -04:00
parent 422be504fe
commit 5062ba17cb
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -4,3 +4,4 @@ logs/
*.log
.env
report*.json
commands/games-mp/poker.js
+5
View File
@@ -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;