mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
e4594f36e0
Thanks to my use of unseeded() rand() early on to generate mqtt device IDs, a handful of devices are using the same devIDs. The server notices this and passes a new response which triggers generating a new id that should be unique (rand() being seeded earlier now.) Testing says the games that are left behind with the old devid will limp along thanks to their relay connection while newer games will be better. |
||
---|---|---|
.. | ||
res | ||
scripts | ||
.gitignore | ||
CollegeEng_2to8.xwd | ||
curgamlistwin.c | ||
curgamlistwin.h | ||
cursesask.c | ||
cursesask.h | ||
cursesboard.c | ||
cursesboard.h | ||
cursesdlgutil.c | ||
cursesdlgutil.h | ||
cursesdraw.c | ||
cursesletterask.c | ||
cursesletterask.h | ||
cursesmain.c | ||
cursesmain.h | ||
cursesmenu.c | ||
cursesmenu.h | ||
dict.xwd | ||
filestream.c | ||
filestream.h | ||
flip.xpm | ||
gamesdb.c | ||
gamesdb.h | ||
gsrcwrap.c | ||
gsrcwrap.h | ||
gtkask.c | ||
gtkask.h | ||
gtkaskdict.c | ||
gtkaskdict.h | ||
gtkaskm.c | ||
gtkaskm.h | ||
gtkboard.c | ||
gtkboard.h | ||
gtkchat.c | ||
gtkchat.h | ||
gtkconnsdlg.c | ||
gtkconnsdlg.h | ||
gtkdraw.c | ||
gtkdraw.h | ||
gtkinvit.c | ||
gtkinvit.h | ||
gtkletterask.c | ||
gtkletterask.h | ||
gtkmain.c | ||
gtkmain.h | ||
gtknewgame.c | ||
gtknewgame.h | ||
gtkntilesask.c | ||
gtkntilesask.h | ||
gtkpasswdask.c | ||
gtkpasswdask.h | ||
gtkutils.c | ||
gtkutils.h | ||
hint.xpm | ||
juggle.xpm | ||
lindutil.c | ||
lindutil.h | ||
linuxbt.c | ||
linuxbt.h | ||
linuxdict.c | ||
linuxdict.h | ||
linuxmain.c | ||
linuxmain.h | ||
linuxserver.c | ||
linuxserver.h | ||
linuxsms.c | ||
linuxsms.h | ||
linuxudp.c | ||
linuxudp.h | ||
linuxutl.c | ||
linuxutl.h | ||
LocalizedStrIncludes.h | ||
main.h | ||
Makefile | ||
mqttcon.c | ||
mqttcon.h | ||
README.txt | ||
relaycon.c | ||
relaycon.h | ||
uuidhack.c | ||
uuidhack.h | ||
value.xpm | ||
xptypes.h |
(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.