diff --git a/include/riichi.hrl b/include/riichi.hrl index bb5e84d..f1ce5f6 100644 --- a/include/riichi.hrl +++ b/include/riichi.hrl @@ -47,11 +47,11 @@ %% Discards = [tile()] %% Drawn = none | {tsumo | ron, tile()} -record(player, { - name :: string(), - seat :: wind(), - hand :: hand(), - discards :: [tile()], - drawn :: none | {tsumo | ron, tile()} + name :: string(), + seat :: wind(), + hand=#hand{} :: hand(), + discards=[] :: [tile()], + drawn=none :: none | {tsumo | ron, tile()} }). -type player() :: #player{}.