Commit Graph

17 Commits

Author SHA1 Message Date
86e2bb041b Buffered 'getc' from network. 2008-10-09 22:38:45 +00:00
2926da45ac makedepend and make clean 2008-10-09 22:13:09 +00:00
02eb1c6cde splitted out parts of server.c to game.c and asciiart.c, rewritten the asciiart part a bit. things still seem to work 2008-10-09 22:03:38 +00:00
c606818adc Network code updated. (simplest solution possible)
It works!
2008-10-09 21:10:35 +00:00
ea727f335a Forgot headerfile for network part. 2008-10-09 19:22:50 +00:00
227e1e9254 Almost working network support. 2008-10-09 19:20:37 +00:00
7d42846db7 trying a different ASCII representation 2008-10-09 14:39:03 +00:00
00ab866250 added large amounts of ugly code
it should now be possible to play a game by entering both players'
moves at the terminal (compile and run server.c).

moves are entered as follows:

M E9 S   # move piece at E9 south
M D5 NW  # move piece at D5 north-west
R D5 R   # rotate piece at D5 clockwise ('right')
R D5 L   # rotate piece at D5 counterclockwise ('left')

the ASCII display should be quite self-explanatory -- or at least, by
applying lots of creativity, _possible_ to read.
2008-10-09 14:21:19 +00:00
4e1e418117 code for printing board and placing pieces, simple test in main() 2008-10-08 21:02:52 +00:00
f4fa43c695 reindentert til 4 mellomrom 2008-10-08 17:25:20 +00:00
9ab50fbd9b noen protokollideer 2008-10-08 17:21:12 +00:00
9e0757bd3f forslag til ASCII-representasjon av brett 2008-10-08 17:16:56 +00:00
ebe5586abd -More compiletime warning
-Some typo fixes
2008-10-03 19:56:51 +00:00
788724b4ff Beginnings of network support.
TODO: rewrite to be addressfamily-independent.  (getaddrinfo)
2008-10-03 16:54:59 +00:00
08dc193e53 clearer this way? 2008-10-02 23:54:22 +00:00
bf852e861c Beginnings of the server 2008-10-02 23:51:51 +00:00
b4300c1a7d First commit 2008-10-02 20:38:09 +00:00