From 3d49277fd74dcd25244d695209de66e04c93815a Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 3 Dec 2012 23:47:36 -0500 Subject: [PATCH] Some default values for the player record --- include/riichi.hrl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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{}.