about summary refs log blame commit diff stats
path: root/lib/Caelum/Player.rakumod
blob: ea14421afdd41c837466d27f85c98669918c9954 (plain) (tree)
1
2
3
4
5
6
7
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; }
}