Tic tac toe works

This commit is contained in:
Jonatan Pålsson 2011-05-16 16:29:27 +02:00
parent f81fec6b9c
commit 620b19bff6
4 changed files with 50 additions and 29 deletions

View file

@ -102,6 +102,7 @@ handle_cast({srv_cmd, "hello", _Headers, TableToken}, State) ->
{noreply, State#state{ table = TPid } }
end;
handle_cast({srv_cmd, "define", _Headers, Data}, #state { table = Table } = State) ->
erl:display(Data),
ggs_table:notify(Table, self(), {server, define, Data}),
{noreply, State};
handle_cast({game_cmd, Command, _Headers, Data}, #state { table = Table } = State) ->