xwords/xwords4/linux
2015-02-19 06:39:32 -08:00
..
res test files for new bonus-squares-settable feature 2011-04-10 13:02:45 -07:00
scripts declare as little-a array so key will be listed in numeric order 2014-12-15 16:41:15 -08:00
.gitignore ignore app 2013-12-12 21:10:44 -08:00
cursesask.c fix curses build for 64bit compile and to use common layout (meaning 2014-01-05 13:04:59 -08:00
cursesask.h fix curses build for 64bit compile and to use common layout (meaning 2014-01-05 13:04:59 -08:00
cursesdlgutil.c make curses version use udp socket when --db param passed. There's no 2013-01-24 07:49:49 -08:00
cursesdlgutil.h make curses version use udp socket when --db param passed. There's no 2013-01-24 07:49:49 -08:00
cursesdraw.c copy string's null terminator too 2014-01-06 07:05:34 -08:00
cursesletterask.c make curses version use udp socket when --db param passed. There's no 2013-01-24 07:49:49 -08:00
cursesletterask.h Use new dict API to get rid of XP_UCHAR4 type, replacing with const XP_UCHAR*. 2009-04-07 04:23:56 +00:00
cursesmain.c so tests can continue, comment out an assertion that indicates a relay 2014-12-15 16:43:24 -08:00
cursesmain.h Merge branch 'android_branch' into gtk_multigame 2013-07-09 07:18:00 -07:00
filestream.c Add, and use, stream_putString. Saves 500 bytes on win32. 2006-04-25 13:31:15 +00:00
filestream.h update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
flip.xpm first checkin 2003-11-01 05:35:29 +00:00
gamesdb.c fix problems with opening and using wordlists on 64-bit linux by 2014-01-07 06:58:20 -08:00
gamesdb.h pass, save and restore port; read several messages at once 2013-12-19 08:00:04 -08:00
gtkask.c add ability in ask dialog to display buttons with arbitrary text 2013-12-30 07:16:52 -08:00
gtkask.h add ability in ask dialog to display buttons with arbitrary text 2013-12-30 07:16:52 -08:00
gtkaskdict.c now games are displayed in lists. Next: open them. 2013-01-05 19:40:29 -08:00
gtkaskdict.h snapshot. New game button works and game gets saved in DB. Next: display and open from DB. 2013-01-05 16:08:19 -08:00
gtkaskm.c snapshot: still not correctly recording return address 2013-12-16 08:06:29 -08:00
gtkaskm.h progress on inviting via SMS 2013-12-12 06:08:56 -08:00
gtkboard.c always log error message 2014-09-23 07:30:34 -07:00
gtkboard.h enable invite and commit buttons based on game state 2013-12-19 06:59:34 -08:00
gtkchat.c change names of two types and variables of that type to make a common 2013-01-15 19:04:20 -08:00
gtkchat.h change names of two types and variables of that type to make a common 2013-01-15 19:04:20 -08:00
gtkconnsdlg.c toward getting direct-ip addressing working again: add a tab to the 2014-09-20 18:08:33 -07:00
gtkconnsdlg.h change names of two types and variables of that type to make a common 2013-01-15 19:04:20 -08:00
gtkdraw.c fix crash on 64-bit system 2013-12-30 06:46:57 -08:00
gtkdraw.h add function, not compiled by default, to return bounding rect of all 2013-10-27 21:51:30 -07:00
gtkletterask.c turn on face-up tile picking for Android (though there's no prefs UI 2011-10-28 22:15:56 -07:00
gtkletterask.h snapshot. New game button works and game gets saved in DB. Next: display and open from DB. 2013-01-05 16:08:19 -08:00
gtkmain.c fix so non-DEBUG build compiles 2014-03-04 07:07:01 -08:00
gtkmain.h add new param so pending text can be drawn differently when it's not 2013-05-30 07:17:13 -07:00
gtknewgame.c save a bit of work setting up game manually by assuming two players -- 2014-09-25 06:35:10 -07:00
gtknewgame.h change names of two types and variables of that type to make a common 2013-01-15 19:04:20 -08:00
gtkntilesask.c Set -Wunused-parameter for those versions of gcc that support it, and 2006-08-16 13:44:44 +00:00
gtkntilesask.h snapshot. New game button works and game gets saved in DB. Next: display and open from DB. 2013-01-05 16:08:19 -08:00
gtkpasswdask.c Set -Wunused-parameter for those versions of gcc that support it, and 2006-08-16 13:44:44 +00:00
gtkpasswdask.h update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
gtkutils.c snapshot: still not correctly recording return address 2013-12-16 08:06:29 -08:00
gtkutils.h snapshot: still not correctly recording return address 2013-12-16 08:06:29 -08: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
linuxbt.c toward improving bt support in gtk client: add scan button that only 2013-12-07 10:12:20 -08:00
linuxbt.h toward improving bt support in gtk client: add scan button that only 2013-12-07 10:12:20 -08:00
linuxdict.c enlarge dictmgr to track a compile-time defined number of dicts 2014-03-10 21:01:24 -07:00
linuxdict.h fix curses version so discon_ok2 tests work again. 2013-01-07 20:40:46 -08:00
linuxmain.c merge android_branch -> android_shipbt 2014-09-24 20:51:23 -07:00
linuxmain.h snapshot: still not correctly recording return address 2013-12-16 08:06:29 -08:00
linuxserver.c update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
linuxserver.h update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
linuxsms.c fix problems with opening and using wordlists on 64-bit linux by 2014-01-07 06:58:20 -08:00
linuxsms.h cleanup: remove '2' from function and struct names 2013-12-30 07:08:42 -08:00
linuxudp.c Cleanup to build with relay enabled; don't enable any network features 2009-01-03 23:56:20 +00:00
linuxudp.h Add files forgotten with last checkin; add additional parameter to 2007-11-28 03:59:26 +00:00
linuxutl.c include robot name in report of his score 2014-10-23 06:32:24 -07:00
linuxutl.h snapshot: toward having a better description of the last move in 2014-08-26 06:55:26 -07:00
LocalizedStrIncludes.h show new client-formatted turn summary in notification; remove old 2014-08-26 21:37:33 -07:00
main.h fix occasional assert by increasing buffer size 2015-02-19 06:39:32 -08:00
Makefile toward getting direct-ip addressing working again: add a tab to the 2014-09-20 18:08:33 -07:00
README.txt note that file's out-of-date 2010-09-11 01:28:04 -07:00
relaycon.c fix so non-DEBUG build compiles 2014-03-04 07:07:01 -08:00
relaycon.h Address problem with devids (e.g. GCM): until now when you got a new 2013-09-14 21:06:14 -07:00
uuidhack.c use libuuid to prep BT UUID, now a string instead of an array of bytes 2012-01-19 18:52:33 -08:00
uuidhack.h use libuuid to prep BT UUID, now a string instead of an array of bytes 2012-01-19 18:52:33 -08:00
value.xpm first checkin 2003-11-01 05:35:29 +00:00
xptypes.h add memmove 2014-03-10 20:25:38 -07:00

(This file is out-of-date and the instructions it contains don't work.)

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.