summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-11-12tit4tat.pl: Remove obsolete syntax descriptionBenjamin Franzke1-2/+0
2012-11-12Add c implementation for algorithm battle with working payment.Jan Klemkow3-2/+46
2012-11-11Merge branch 'master' of ssh://git.bnfr.net/git/wbsJan Klemkow1-0/+28
2012-11-11Add tit4tat prolog code example.Jan Klemkow1-11/+1
2012-11-10Add pd_client that works with SWI-PrologBenjamin Franzke1-0/+28
Since SWI-Prolog provides a different socket interface.
2012-11-10Add prolog code for tit3tat rules.Jan Klemkow1-0/+17
2012-11-10doc: Valentina has only one 'l'Benjamin Franzke1-1/+1
2012-11-10Fix game rules image.Jan Klemkow2-6/+7
2012-11-10Add build system for presentation and images.Jan Klemkow5-0/+39
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