--- a/src/rps_bots.erl Sun Mar 02 17:58:19 2014 +0900
+++ b/src/rps_bots.erl Sun Mar 02 18:00:14 2014 +0900
Hand = lists:nth(random:uniform(length(get_rules())), get_rules()),
{winner, {NewHand, _}} ->
F = fun({_, A}, {_, B}) -> A =< B end,
{Hand, _} = hd(lists:sort(F, dict:to_list(Wins))),
--- a/src/rps_room.erl Sun Mar 02 17:58:19 2014 +0900
+++ b/src/rps_room.erl Sun Mar 02 18:00:14 2014 +0900
room(Players) when is_list(Players) ->
- lists:foreach(fun(Player) -> Player ! start end, Players),
+ lists:foreach(fun(Player) -> Player ! {start, rps3} end, Players),
room(#state{players=Players});
room(#state{players=Players, choices=Choices}) when length(Players) =:= length(Choices) ->