Anton Shestakov <engored@ya.ru>, Thu, 06 Mar 2014 19:39:46 +0900
Use ~p instead of ~w for win stats, overall more human-friendly format in printer.
--- a/src/rps.erl Thu Mar 06 19:38:46 2014 +0900
+++ b/src/rps.erl Thu Mar 06 19:39:46 2014 +0900
- io:format("Stats: ~w.~n", [Stats])
+ {plays, Plays, draws, Draws, wins, Wins, hands, Hands} = Stats,
+ io:format("Plays: ~w, draws: ~w, wins: ~p, hands: ~w.~n",
+ [Plays, Draws, Wins, Hands])
counter ! {sendstats, self()}