xwords/xwords4/linux
2005-08-21 14:18:56 +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 remove logging 2005-06-25 05:44:30 +00:00
cursesmain.h fix and cleanup linux client to move to using tcp. Add the ability to 2005-03-19 22:07:53 +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 switch to g_signal_connect 2005-05-29 20:17:09 +00:00
gtkask.h first checkin 2003-11-01 05:35:29 +00:00
gtkdraw.c add justification to draw_string_at to better position using pango. 2005-05-30 00:03:58 +00:00
gtkdraw.h first checkin 2003-11-01 05:35:29 +00:00
gtkletterask.c switch to g_signal_connect 2005-05-29 20:17:09 +00:00
gtkletterask.h util function sig change 2005-01-13 04:30:50 +00:00
gtkmain.c Get rid of unused param 2005-07-14 02:54:47 +00:00
gtkmain.h constant name changed 2005-08-21 14:18:56 +00:00
gtknewgame.c switch to g_signal_connect 2005-05-29 20:17:09 +00:00
gtknewgame.h first checkin 2003-11-01 05:35:29 +00:00
gtkntilesask.c switch to g_signal_connect 2005-05-29 20:17:09 +00:00
gtkntilesask.h first checked in 2003-11-30 19:06:22 +00:00
gtkpasswdask.c switch to g_signal_connect 2005-05-29 20:17:09 +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 Pass protocol version code with connect request, and return error if 2005-07-06 01:36:52 +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 constant name changed 2005-08-21 14:18:56 +00:00
Makefile Switch to GTK 2.n. 2005-05-29 20:40:38 +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 define XP_LD 2005-03-20 21:03:18 +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.