This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# courtesy of https://gist.github.com/masak/244255 | |
use v6; | |
enum Suit < ♥ ♦ ♣ ♠ >; | |
enum Rank (2, 3, 4, 5, 6, 7, 8, 9, 10, | |
'j', 'q', 'k', 'a'); | |
class Card { | |
has Suit $.suit; | |
has Rank $.rank; |