diff options
Diffstat (limited to 'lib/Caelum/Player.rakumod')
-rw-r--r-- | lib/Caelum/Player.rakumod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Caelum/Player.rakumod b/lib/Caelum/Player.rakumod new file mode 100644 index 0000000..ea14421 --- /dev/null +++ b/lib/Caelum/Player.rakumod @@ -0,0 +1,8 @@ +class Player is export { + has Str $.name; + has $.points is rw; + has Int $.wallet is rw = 1000; + + # Place a bet. + method bet(Int $bet) { $!wallet -= $bet; } +} |