From 320f3b89263b9c775fd9bfa649b1cb8ad3c0f8b2 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 9 Nov 2012 10:14:05 +0100 Subject: pd_client: Add some informative output --- pd_client.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pd_client.pl b/pd_client.pl index 7b32e3a..a484370 100644 --- a/pd_client.pl +++ b/pd_client.pl @@ -17,11 +17,12 @@ do(_, _, _, _, [e|_]) :- !. do(StreamIn, StreamOut, Module, ModuleState, Hist) :- call(Module, Hist, ModuleDecision, ModuleState, NewModuleState), write(StreamOut, ModuleDecision), flush_output(StreamOut), + format('Own choose:\t~w\n', [ModuleDecision]), loop(StreamIn, StreamOut, Module, NewModuleState, Hist). loop(StreamIn, StreamOut, Module, ModuleState, Hist) :- get_code(StreamIn, ChoiceCode), byte_to_atom(ChoiceCode, Choice), - write(Choice), + format('Opponent chose:\t~w\n', [Choice]), do(StreamIn, StreamOut, Module, ModuleState, [Choice|Hist]). % -1 = EOF -- cgit