--- a/src/rps3.erl Mon Mar 03 20:00:26 2014 +0900
+++ b/src/rps3.erl Mon Mar 03 20:06:02 2014 +0900
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
-export([start_link/0, get_hands/0, winning_hand/1, why/2]).
--record(state, {hands=[], beats=dict:new(), loses=dict:new(), why=dict:new()}).
+-include("rps_rules.hrl").
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
--- a/src/rps_rules.erl Mon Mar 03 20:00:26 2014 +0900
+++ b/src/rps_rules.erl Mon Mar 03 20:06:02 2014 +0900
-export([parse/1, winning_hand/2]).
--record(state, {hands=[], beats=dict:new(), loses=dict:new(), why=dict:new()}).
+-include("rps_rules.hrl").
Tokens = lists:map(fun list_to_atom/1, string:tokens(Text, " ")),
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/rps_rules.hrl Mon Mar 03 20:06:02 2014 +0900
+-record(state, {hands=[], beats=dict:new(), loses=dict:new(), why=dict:new()}).