summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-11-10Merge branch 'master' of ssh://git.bnfr.net/git/wbsJan Klemkow2-36/+48
2012-11-10doc: image of network protocolJan Klemkow1-0/+0
2012-11-09pd_client: Use atom_codes/2 instead of name/2Benjamin Franzke1-1/+1
As its recommended by the gprolog documentation
2012-11-09pd_client: Add some informative outputBenjamin Franzke1-1/+2
2012-11-09pd_server: Start a new round after one has finishedBenjamin Franzke1-23/+26
So that 2 new clients can connect.
2012-11-09pd_server: Check rounds parameter to be a numberBenjamin Franzke1-3/+3
2012-11-09pd_server: Some code cleanupBenjamin Franzke1-3/+8
2012-11-09pd_servert: Fix space vs tabsBenjamin Franzke1-11/+14
2012-11-09Add makefile for BSD make.Jan Klemkow1-0/+13
2012-11-08pd_client: Use descriptive paramter names for byte_to_atomBenjamin Franzke1-4/+4
And move byte_to_atom around.
2012-11-08Add a very simple prisoner dilemma serverBenjamin Franzke3-1/+88
2012-11-08pd_client: Prepend new choice to history in loop()Benjamin Franzke1-5/+5
So that we dont produce a list with an empty list in the initial do-invokation.
2012-11-08Revert "pd_client: Close streams"Benjamin Franzke1-1/+1
This reverts commit 80c9333a5987997362753f992b4d5b665033e6b3. Closing the streams gives following error: error(system_error('Bad file descriptor'),socket_close
2012-11-08pd_client: Use get_code to read only a single byteBenjamin Franzke1-1/+6
2012-11-08pd_client: Close streamsBenjamin Franzke1-1/+1
2012-11-08pd_client: Correctly exit when receiving an eBenjamin Franzke1-1/+1
2012-11-08prisoners_dilemma: Remove unneeded decide ruleBenjamin Franzke1-3/+1
since its a trivial wrapper for call
2012-11-08Add prisoners dilemma prolog clientBenjamin Franzke1-0/+24
2012-11-08Add an example on how to connect, write and read from a socket with GNU PrologBenjamin Franzke1-0/+10
2012-11-08prisoners_dilemma: Use format instead of writeBenjamin Franzke1-4/+3
2012-11-08prisoners_dilemma.pl: Remove debug codeBenjamin Franzke1-1/+2
2012-11-08Prisoners Dilemma: Move rules to subdirectoryBenjamin Franzke13-1/+1
2012-11-08Prisoners Dilemma: Add descriptions to non-trivial understandable modulesBenjamin Franzke6-4/+17
2012-11-08naive_prober: Use if-then-else for random decision tooBenjamin Franzke1-7/+1
2012-11-07random_choice.pl: Rework to use if-then-elseBenjamin Franzke1-4/+2
2012-11-07Prisoners Dilemma: Add naive prober algorithmBenjamin Franzke1-0/+14
2012-11-07Prisoners Dilemma: Add hard_tit4tat algorithmBenjamin Franzke1-0/+2
2012-11-07grudger,mistrust_tit4tat: Add missing parameterBenjamin Franzke2-4/+4
2012-11-07tit42tat: Fix incorrect second solution if thre are two defacts in historyBenjamin Franzke1-1/+1
2012-11-07Prisoners Dilemma: Fix pavlov algorithmBenjamin Franzke1-2/+2
2012-11-07Prisoners Dilemma: Add not-yet-working pavlovBenjamin Franzke1-0/+5
2012-11-07Prisoners Dilemma: Add periodically DDC and SSZ algorithmBenjamin Franzke2-0/+8
2012-11-07prisoners_dilemma: Track module stateBenjamin Franzke8-16/+16
Will be needed for peridical algorithms.
2012-11-06grudger: Rework to stop searching on first found d.Benjamin Franzke1-3/+3
2012-11-06Prisoners Dilemma: Add grudger algorithmBenjamin Franzke1-0/+7
2012-11-06prisoners_dilemma.pl: Disable automatic start for now..Benjamin Franzke1-3/+3
2012-11-06Prisoners Dilemma: Add random decision moduleBenjamin Franzke1-0/+4
2012-11-06Prisoners Dilemma: Add mistrust_tit4tat algorithmBenjamin Franzke1-0/+6
2012-11-06prisoners_dilemma: Output player decisionsBenjamin Franzke1-2/+2
2012-11-06Prisoners Dilemma: Add tit for two tats algorithmBenjamin Franzke1-0/+5
2012-11-06Add simple test modules for prisoners dilemma to always defect or coorporateBenjamin Franzke2-0/+2
2012-11-06tit4tat.pl: Try to document the syntaxBenjamin Franzke1-0/+2
Since its not readable from the facts.
2012-11-06prisioners_dilemma: Dont pass user choice to moduleBenjamin Franzke2-10/+6
2012-11-06Begin modularization of prolog prisoners dilemma implementationBenjamin Franzke4-50/+54
2012-11-06tit4tat.pl: Coding styleBenjamin Franzke1-3/+1
2012-11-06tit4tat.pl: Remove debug outputBenjamin Franzke1-1/+0
2012-11-06Add .gitignoreBenjamin Franzke1-0/+2
2012-11-06tit4tat.pl: Coding style fixesBenjamin Franzke1-2/+2
2012-11-06Makefile: Add clean targetBenjamin Franzke1-0/+3
2012-11-06tit4tat.c: Remove non-standard fpurge by adding an ugly while-loopBenjamin Franzke1-3/+2