diff options
author | B. Watson <urchlay@slackware.uk> | 2023-07-05 16:00:25 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:42:08 +0700 |
commit | 3fe330501d18eff4d5ae5ed19a79d015e0eee7e6 (patch) | |
tree | baddec9199a776e56a53eb69ebaaa499c11457d7 /games | |
parent | 984693ccfd21e2d87fdfd3763d37ae128c6b400a (diff) |
games/scrabbleai: Fix player word list.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/scrabbleai/scrabbleai.SlackBuild | 12 | ||||
-rw-r--r-- | games/scrabbleai/wordlists.diff | 107 |
2 files changed, 118 insertions, 1 deletions
diff --git a/games/scrabbleai/scrabbleai.SlackBuild b/games/scrabbleai/scrabbleai.SlackBuild index a756f03ef3b3f..91fb4dfbc8f93 100644 --- a/games/scrabbleai/scrabbleai.SlackBuild +++ b/games/scrabbleai/scrabbleai.SlackBuild @@ -11,11 +11,17 @@ # code, remember that Scrabble itself was invented in 1938, and it's # still a fun game (if you don't agree, why are you building this?) +# 20230705 bkw: BUILD=2 +# - After playing this game for a while, I got annoyed that the AI has +# a few words on its list (ospd.txt) that are missing from the word +# list the player is allowed to use (enable.txt). It turns out there +# are 13 of them. Added patch for enable.txt to add them. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=scrabbleai VERSION=${VERSION:-20150324_6f8db6b} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch @@ -53,6 +59,10 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ # on my test box. patch -p1 < $CWD/unix.diff +# 20230705 bkw: word list for computer includes 13 words that +# the player isn't allowed to use; add them to the player wordlist. +patch -p1 < $CWD/wordlists.diff + mkdir -p $PKG/usr/games $PKG/usr/share/games/$PRGNAM install -m0755 $PRGNAM.pl $PKG/usr/games/$PRGNAM cp -a lib/ScrabbleAI $PKG/usr/share/games/$PRGNAM diff --git a/games/scrabbleai/wordlists.diff b/games/scrabbleai/wordlists.diff new file mode 100644 index 0000000000000..b0a8fef59aa48 --- /dev/null +++ b/games/scrabbleai/wordlists.diff @@ -0,0 +1,107 @@ +diff -Naur scrabbleai-20150324_6f8db6b/lib/ScrabbleAI/Backend/enable.txt scrabbleai-20150324_6f8db6b.patched/lib/ScrabbleAI/Backend/enable.txt +--- scrabbleai-20150324_6f8db6b/lib/ScrabbleAI/Backend/enable.txt 2023-03-20 18:35:20.000000000 -0400 ++++ scrabbleai-20150324_6f8db6b.patched/lib/ScrabbleAI/Backend/enable.txt 2023-07-05 15:49:06.765636762 -0400 +@@ -35962,6 +35962,7 @@ + czaritza + czaritzas + czars ++da + dab + dabbed + dabber +@@ -38125,6 +38126,7 @@ + dehydrogenating + dehydrogenation + dehydrogenations ++dei + deice + deiced + deicer +@@ -39486,6 +39488,7 @@ + derry + dervish + dervishes ++des + desacralization + desacralizations + desacralize +@@ -68219,6 +68222,7 @@ + herons + heros + herpes ++herpeses + herpesvirus + herpesviruses + herpetic +@@ -80779,6 +80783,7 @@ + kettledrum + kettledrums + kettles ++kev + kevel + kevels + kevil +@@ -84158,6 +84163,7 @@ + ley + leys + lez ++lezes + lezzes + lezzie + lezzies +@@ -84321,6 +84327,7 @@ + licensure + licensures + licente ++licenti + licentiate + licentiates + licentious +@@ -139957,6 +139964,7 @@ + skivvy + skivvying + skiwear ++skiwears + sklent + sklented + sklenting +@@ -143087,6 +143095,7 @@ + spaying + spays + spaz ++spazes + spazzes + speak + speakable +@@ -146864,6 +146873,7 @@ + strictnesses + stricture + strictures ++strid + stridden + stride + stridence +@@ -166929,6 +166939,7 @@ + vimina + viminal + vims ++vin + vina + vinaceous + vinaigrette +@@ -167003,6 +167014,7 @@ + vinosity + vinous + vinously ++vins + vintage + vintager + vintagers +@@ -167713,6 +167725,7 @@ + vomits + vomitus + vomituses ++von + voodoo + voodooed + voodooing |