fix card rank ♣ is for automne
This commit is contained in:
@@ -9,10 +9,10 @@ export function getCardFromDate(date: Date): { suit: CardSuit; rank: CardRank }
|
|||||||
month >= 12 || month <= 2
|
month >= 12 || month <= 2
|
||||||
? '♠'
|
? '♠'
|
||||||
: month >= 3 && month <= 5
|
: month >= 3 && month <= 5
|
||||||
? '♣'
|
? '♥'
|
||||||
: month >= 6 && month <= 8
|
: month >= 6 && month <= 8
|
||||||
? '♦'
|
? '♦'
|
||||||
: '♥'
|
: '♣'
|
||||||
|
|
||||||
const ranks: CardRank[] = ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']
|
const ranks: CardRank[] = ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']
|
||||||
const rank = ranks[(day + hour) % ranks.length]
|
const rank = ranks[(day + hour) % ranks.length]
|
||||||
|
|||||||
Reference in New Issue
Block a user