Some default values for the player record

This commit is contained in:
Correl Roush 2012-12-03 23:47:36 -05:00
parent dadd16b81d
commit b4f1d1a95c

View file

@ -47,11 +47,11 @@
%% Discards = [tile()] %% Discards = [tile()]
%% Drawn = none | {tsumo | ron, tile()} %% Drawn = none | {tsumo | ron, tile()}
-record(player, { -record(player, {
name :: string(), name :: string(),
seat :: wind(), seat :: wind(),
hand :: hand(), hand=#hand{} :: hand(),
discards :: [tile()], discards=[] :: [tile()],
drawn :: none | {tsumo | ron, tile()} drawn=none :: none | {tsumo | ron, tile()}
}). }).
-type player() :: #player{}. -type player() :: #player{}.