move main (user end) game code to client.c
authorMischa POSLAWSKY <netris@shiar.org>
Sun, 4 Mar 2007 07:55:56 +0000 (08:55 +0100)
committerMischa POSLAWSKY <netris@shiar.org>
Sun, 4 Mar 2007 07:55:56 +0000 (08:55 +0100)
Makefile
README
TODO
client.c [moved from game.c with 100% similarity]
netris.h

index 48062e93c185b88f58b5ab664824eb486e32e4fa..0baead23e60beef2b58d5a8cd1ed4d5238a24a20 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ PROG = netris
 SPROG = netrisserver
 HEADERS = netris.h
 
-SRCS = game.c curses.c board.c util.c inet.c
+SRCS = client.c curses.c board.c util.c inet.c
 SSRCS = server.c util.c
 
 OBJS = $(SRCS:.c=.o)
diff --git a/README b/README
index 53d78b1e823b31aac87ee5b5a227d22011250c99..337262ca305ce49f7014dc23b329bbb39de95d4d 100644 (file)
--- a/README
+++ b/README
@@ -128,6 +128,6 @@ This version at least partially supports robots.  A rough description
 of the protocol is in "robot_desc", and a sample robot is in sr.c.
 
 The source code should be viewed with tab stops set every 4 columns,
-eg, "less -x4 game.c".
+eg, "less -x4 client.c".
 
 # vi: tw=70
diff --git a/TODO b/TODO
index d14eb01e96bc10e53229d204ab773acc815bdcd6..e91441099b003e06034fee6a5164ecc95caea080 100644 (file)
--- a/TODO
+++ b/TODO
@@ -36,6 +36,7 @@ asap
  * time-based singleplayer leveling?
  * fix -f (both client+server)
  * more server options (field size..)
+ * save hiscores
 
 
 distant future
diff --git a/game.c b/client.c
similarity index 100%
rename from game.c
rename to client.c
index df459eb141478e2c58509ca49c04908bc1468c87..f92817f880332064c2ea8af1037cb2941e7ff222 100644 (file)
--- a/netris.h
+++ b/netris.h
@@ -195,7 +195,7 @@ EXT _Game Game;
 
 EXT GameType game; // => Game.type
 
-EXT short port; // => just in game.c, parameter to inet connect
+EXT short port; // => just in client.c, parameter to inet connect
 
 #endif //__NETRIS_H