xwords/xwords4/linux
2020-09-26 09:48:35 -07:00
..
res test files for new bonus-squares-settable feature 2011-04-10 13:02:45 -07:00
scripts generate new mqtt devid when server reports dupe 2020-09-13 15:06:08 -07:00
.gitignore ignore log dir 2018-05-31 21:23:10 -07:00
CollegeEng_2to8.xwd rename dict symlink 2017-11-11 16:12:06 -08:00
curgamlistwin.c rename gamesdb public functions (linux only) 2020-09-26 09:48:35 -07:00
curgamlistwin.h handle relay-invites received 2020-01-31 13:29:36 -08:00
cursesask.c use deviceID to invite via relay; make 3- and 4-device games work 2020-02-16 19:12:22 -08:00
cursesask.h cleanup: unify gtk&curses; make duplicate mode work 2020-02-02 22:10:20 -08:00
cursesboard.c rename gamesdb public functions (linux only) 2020-09-26 09:48:35 -07:00
cursesboard.h remove assertion when message mis-delivered 2020-04-11 11:44:09 -07: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 remove use of thread->env mapper for drawing 2020-04-26 13:39:21 -07:00
cursesletterask.c make curses app more like the rest 2020-01-24 09:05:16 -08:00
cursesletterask.h make curses app more like the rest 2020-01-24 09:05:16 -08:00
cursesmain.c rename gamesdb public functions (linux only) 2020-09-26 09:48:35 -07:00
cursesmain.h add mqtt as a new transport 2020-05-20 13:58:53 -07:00
cursesmenu.c handle window resize (more-or-less) 2020-01-31 12:29:45 -08:00
cursesmenu.h handle window resize (more-or-less) 2020-01-31 12:29:45 -08:00
dict.xwd comment out dead code I keep reading 2019-02-22 19:59:55 -08: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 rename gamesdb public functions (linux only) 2020-09-26 09:48:35 -07:00
gamesdb.h rename gamesdb public functions (linux only) 2020-09-26 09:48:35 -07:00
gsrcwrap.c cleanup and fix test script stalls 2020-02-07 23:11:20 -08:00
gsrcwrap.h make curses app more like the rest 2020-01-24 09:05:16 -08:00
gtkask.c show bonus-square-held 2020-04-17 07:06:31 -07:00
gtkask.h show bonus-square-held 2020-04-17 07:06:31 -07:00
gtkaskdict.c snapshot toward building with gtk3 2016-08-03 15:19:12 -07: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 toward building with gtk3 2016-08-03 15:19:12 -07:00
gtkaskm.h progress on inviting via SMS 2013-12-12 06:08:56 -08:00
gtkboard.c rename gamesdb public functions (linux only) 2020-09-26 09:48:35 -07:00
gtkboard.h cleanup: unify gtk&curses; make duplicate mode work 2020-02-02 22:10:20 -08:00
gtkchat.c snapshot toward building with gtk3 2016-08-03 15:19:12 -07: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 add mqtt as a new transport 2020-05-20 13:58:53 -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 remove use of thread->env mapper for drawing 2020-04-26 13:39:21 -07:00
gtkdraw.h fix to build with CURSES_ONLY flag 2016-12-22 08:57:54 -08:00
gtkinvit.c make known-player stuff conditional 2020-09-26 09:48:35 -07:00
gtkinvit.h gtk known-player invitation works 2020-09-26 09:48:35 -07:00
gtkletterask.c fix tile picker dialog 2020-04-22 21:28:27 -07:00
gtkletterask.h toward making tile picking work through rotations 2017-03-09 20:36:14 -08:00
gtkmain.c rename gamesdb public functions (linux only) 2020-09-26 09:48:35 -07:00
gtkmain.h add mqtt as a new transport 2020-05-20 13:58:53 -07:00
gtknewgame.c stop using thread->env mapping for util callbacks 2020-04-26 13:39:21 -07:00
gtknewgame.h make curses app more like the rest 2020-01-24 09:05:16 -08:00
gtkntilesask.c snapshot toward building with gtk3 2016-08-03 15:19:12 -07: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 fix remaining gtk dialogs 2016-08-04 12:43:33 -07:00
gtkpasswdask.h update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
gtkutils.c snapshot toward building with gtk3 2016-08-03 15:19:12 -07:00
gtkutils.h beginning of support for invite-by-relay (which is mostly interesting 2015-07-01 07:10:45 -07: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
lindutil.c rename gamesdb public functions (linux only) 2020-09-26 09:48:35 -07:00
lindutil.h Break part of util into dutil 2018-07-05 07:58:50 -07:00
linuxbt.c fix crashes rematching from linux a games started on android 2020-06-04 11:37:07 -07: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 refactor so common dictnry does more work 2020-05-01 09:18:27 -07:00
linuxdict.h remove use of thread->env mapper for drawing 2020-04-26 13:39:21 -07:00
linuxmain.c rename gamesdb public functions (linux only) 2020-09-26 09:48:35 -07:00
linuxmain.h remove comms/transport from using thread->env map 2020-04-26 13:39:21 -07: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 stop using thread->env mapping for util callbacks 2020-04-26 13:39:21 -07:00
linuxsms.h better display of "sms" message passing 2020-03-14 13:43:42 -07:00
linuxudp.c add and use boolToStr 2017-01-22 14:15:29 -08:00
linuxudp.h Add files forgotten with last checkin; add additional parameter to 2007-11-28 03:59:26 +00:00
linuxutl.c fix to compile on non-cutting-edge glib 2020-08-31 18:33:20 -07:00
linuxutl.h use new glib datetime api (replaces deprecated) 2020-08-31 17:17:52 -07:00
LocalizedStrIncludes.h show pending name in scoreboard 2020-04-10 07:12:56 -07:00
main.h add filtering to wordlist browser 2020-08-05 09:47:44 -07:00
Makefile make known-player stuff conditional 2020-09-26 09:48:35 -07:00
mqttcon.c fix bug resulting in invitation droppage 2020-08-22 12:36:31 -07:00
mqttcon.h add mqtt as a new transport 2020-05-20 13:58:53 -07:00
README.txt note that file's out-of-date 2010-09-11 01:28:04 -07:00
relaycon.c rename gamesdb public functions (linux only) 2020-09-26 09:48:35 -07:00
relaycon.h add mqtt as a new transport 2020-05-20 13:58:53 -07:00
uuidhack.c compile with latest gcc (untested on old) 2018-04-06 21:49:51 -07:00
uuidhack.h compile with latest gcc (untested on old) 2018-04-06 21:49:51 -07:00
value.xpm first checkin 2003-11-01 05:35:29 +00:00
xptypes.h pass env into dict-related methods 2020-04-26 13:39:16 -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.