Commit Graph

15 Commits

Author SHA1 Message Date
ffa0ef6154 Removed dead code (and a few fixes) 2008-10-11 00:00:40 +00:00
160e63e91c Fix network support
Multiple clients can now connect.
(For now two first clients will play)
2008-10-10 23:47:41 +00:00
b00565ea66 introduced a move struct, added some functions using it in game.c, written a function terminal_game in server.c for local games 2008-10-10 21:58:24 +00:00
c0395e561c tell which color a killed piece had, some fixes in asciiart, added markings on the color-restricted squares 2008-10-10 09:47:55 +00:00
d860d50001 Det er bedre å bruke pieceinfo til navn på brikkene. 2008-10-09 22:53:09 +00:00
fc4418e158 Lagt til så det står hvilken brikke man traff hvis man traff en brikke. 2008-10-09 22:41:29 +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
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
ebe5586abd -More compiletime warning
-Some typo fixes
2008-10-03 19:56:51 +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