xwords/xwords4/linux
2005-03-19 22:06:23 +00:00
..
scripts first checkin 2003-11-01 05:35:29 +00:00
.cvsignore first checked in 2003-11-16 17:30:19 +00:00
cursesask.c remove code to new shared file 2003-11-16 17:14:28 +00:00
cursesask.h first checkin 2003-11-01 05:35:29 +00:00
cursesdlgutil.c first checked in 2003-11-16 17:15:41 +00:00
cursesdlgutil.h first checked in 2003-11-16 17:15:41 +00:00
cursesdraw.c move playerNum into dsi so can be used in formatting score; show 2005-03-15 03:29:37 +00:00
cursesletterask.c api change 2005-03-12 05:33:40 +00:00
cursesletterask.h util function sig change 2005-01-13 04:30:50 +00:00
cursesmain.c deal with tcp streams the same in curses as on gtk. Both work now 2005-03-12 05:33:30 +00:00
cursesmain.h first checkin 2003-11-01 05:35:29 +00:00
filestream.c first checkin 2003-11-01 05:35:29 +00:00
filestream.h first checkin 2003-11-01 05:35:29 +00:00
flip.xpm first checkin 2003-11-01 05:35:29 +00:00
gtkask.c fix formatting 2004-02-17 03:56:12 +00:00
gtkask.h first checkin 2003-11-01 05:35:29 +00:00
gtkdraw.c move playerNum into dsi so can be used in formatting score 2005-03-15 03:27:24 +00:00
gtkdraw.h first checkin 2003-11-01 05:35:29 +00:00
gtkletterask.c util function sig change 2005-01-13 04:30:50 +00:00
gtkletterask.h util function sig change 2005-01-13 04:30:50 +00:00
gtkmain.c deal with tcp streams the same in curses as on gtk. Both work now 2005-03-12 05:33:30 +00:00
gtkmain.h Replace UDP-based messaging with TCP. Stream protocol says distinct 2005-03-06 18:07:00 +00:00
gtknewgame.c first checkin 2003-11-01 05:35:29 +00:00
gtknewgame.h first checkin 2003-11-01 05:35:29 +00:00
gtkntilesask.c first checked in 2003-11-30 19:06:22 +00:00
gtkntilesask.h first checked in 2003-11-30 19:06:22 +00:00
gtkpasswdask.c first checkin 2003-11-01 05:35:29 +00:00
gtkpasswdask.h first checkin 2003-11-01 05:35:29 +00:00
hint.xpm first checkin 2003-11-01 05:35:29 +00:00
juggle.xpm first checkin 2003-11-01 05:35:29 +00:00
linuxdict.c fix linux build: set up super's vtable 2004-10-30 17:01:20 +00:00
linuxmain.c deal with tcp streams the same in curses as on gtk. Both work now 2005-03-12 05:33:30 +00:00
linuxmain.h deal with tcp streams the same in curses as on gtk. Both work now 2005-03-12 05:33:30 +00:00
linuxserver.c first checkin 2003-11-01 05:35:29 +00:00
linuxserver.h first checkin 2003-11-01 05:35:29 +00:00
LocalizedStrIncludes.h Make linux compile with latest changes 2004-11-09 02:06:32 +00:00
main.h Replace UDP-based messaging with TCP. Stream protocol says distinct 2005-03-06 18:07:00 +00:00
Makefile use compiler flags that ease debugging 2005-03-15 06:22:48 +00:00
README.txt first checkin 2003-11-01 05:35:29 +00:00
value.xpm first checkin 2003-11-01 05:35:29 +00:00
xptypes.h add XP_STRNCPY 2005-03-19 22:06:23 +00:00

This directory contains the desktop Linux port of Crosswords.

To build, run a shell in this directory and type

# make
or
# make debug
or
# make memdebug

Any will work as long as you have both libncurses and libgtk-1.2 and
the associated headers installed on your system.  If you don't you can
play with the Makefile to build with only GTK or ncurses.

Once you've built, go to the linux directory that will be created
within this one and type, at a minimum

# ./xwords -s -n SomeName

to get a GTK-based game with the built-in (English) tiles.  (Add the
-u flag to run with ncurses instead of GTK.)  There will be no robot
player, and the hint feature ('?' button) won't work.  For that you
need a real dictionary, which you can build in the dawg directory.  If
you build the BasEnglish2to8.xwd one in dawg/English, this command
will run a two person game between you and the machine:

# ./xwords -s -r robot -n SomeName -d ../../dawg/English/BasEnglish2to8.xwd

Here are the commands to launch two copies playing against each other
over the network.  Do these in separate shells both in the same
directory as the above commands ran in.  Launch the one with the -s
flag (the "server") first.

 s1# ./xwords -s -r Eric -N -p 4000 -l 4001
 s2# ./xwords -d ../../dawg/English/BasEnglish2to8.xwd -r Kati -p 4001 -l 6002

Both of these have "robot" players.  Turn one or both -r flags to -n
for human players who make their own moves.

If you want to run them on different machines, just add the -a flag to
the client telling it on what machine to find the server (since it
sends the first message, and the server will use the return address
from that message.)



*****

Please keep in mind that these Linux desktop clients are meant for
development only, as testbeds for code in ../common/ that will also be
used for the "real" products on PalmOS, PocketPC, eBookman, etc.
They're not supposed to be polished.