Download:
child 41:f32e096c5433
parent 39:1cda561a868f
40:7d4b76367349
Anton Shestakov <engored@ya.ru>, Mon, 03 Mar 2014 22:17:13 +0900
Keeping comments up-to-date with code.

1 файлов изменено, 0 вставок(+), 6 удалений(-) [+]
src/rps3.erl file | annotate | diff | comparison | revisions
--- a/src/rps3.erl Mon Mar 03 20:22:21 2014 +0900
+++ b/src/rps3.erl Mon Mar 03 22:17:13 2014 +0900
@@ -14,12 +14,6 @@
handle_call(get_hands, _From, State=#ruleinfo{hands=Hands}) ->
{reply, Hands, State};
-% winner for 3 hands is:
-% rock, rock, rock -> rock
-% rock, paper, scissors -> undefined
-% rock, paper, paper -> paper
-% rock, rock, paper -> paper
-
handle_call({winning_hand, Hands}, _From, State) ->
{reply, rps_rules:winning_hand(Hands, State), State};