Commits

Anton Shestakov committed 8d400fa

Use ~p instead of ~w for win stats, overall more human-friendly format in printer.

Comments (0)

Files changed (1)

 printer() ->
     receive
         {stats, Stats} ->
-            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])
     after 1000 ->
             counter ! {sendstats, self()}
     end,