Skip to content

Instantly share code, notes, and snippets.

View dwarring's full-sized avatar

David Warring dwarring

  • The C Peoples
  • New Zealand
View GitHub Profile
# 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;