Among all kinds of time wasters out there, word games got to be my favorite. And from all those word games, there’s one game that stands out from the other, it’s called TextTwist. It is a very simple word game, and yet very addictive. I know I’m not alone, the game is consistently placed as one of the most popular game for months, maybe years, while the likes of [Dynomite](http://en.wikipedia.org/wiki/Dynomite), [Bejeweled](http://en.wikipedia.org/wiki/Bejeweled) and now [Zuma](http://en.wikipedia.org/wiki/Zuma_(computer_game\)) tend to be short lived craze.
The game presents a set of six letters and the player needs to arrange the letters to form English words from three to six letters long within the allotted time. If the player can find at least one six letter word, it advances to the next puzzle. Otherwise, the game is over. The player get extra score for every words found, and a big bonus if all words were found before the time runs out.
The love for a game time waster is not complete before you write a cheat solver for it. So, despite the [abundance of the exact same solver](http://www.google.com/search?q=texttwist+solver&ie=UTF-8&oe=UTF-8) on the net, I wrote mine below. It is in Perl, so you will need (obviously) a [Perl](http://perl.org) interpreter. You also need [Aspell](http://aspell.sourceforge.net) with English dictionary installed.
#!/usr/bin/perl
open(ASPELL, 'aspell dump master en|');
while() {
chomp;
$_ = lc $_;
next unless /^[a-z]{3,6}$/;
if (check($_, $ARGV[0])) {
push @out, $_;
}
}
print join("\n", sort {length $a <=> length $b || $a cmp $b} @out);
print "\n";
sub check {
($word, $letters) = @_;
%letcount = ();
foreach (split(//, $letters)) {
$letcount{$_}++;
}
foreach (split(//, $word)) {
$letcount{$_}--;
return if $letcount{$_} < 0;
}
return 1;
}
Save the code as `texttwist.pl` and run it like `./texttwist.pl lorstl` where 'lorstl' is the letters presented in the game.
Needless to be said, this post also serves as a "never trust high score list unless you see the game yourself" kind of warning. However, I used to consistently score above 150000 with my Palm version, with high score between 500000 and 600000, without any cheats, honest!
Obligatory links:
* [TextTwist](http://get.games.yahoo.com/proddesc?gamekey=texttwist) in Yahoo! Games
* [TextTwist](http://www.gamehouse.com/onlinegames/playgame.jsp?navnum=9&AID=1263&game=twist&code=TextTwist) in GameHouse
* [TextTwist](http://www.bigfishgames.com/online/online_texttwist/online_texttwist.php) in BigFishGames
* [TextTwist](http://zone.msn.com/en/texttwist/) in MSN Zone
yaah, the first time deh…:-“
keren euy…twngah malem ngepostnya….\:d/
Games? :-?
5 besar ;))
\:d/
Jadi inget game Scramble waktu zaman MIRC dulu, aku bikin script ASP buat nampilin semua kemungkinannya, jadi nemu lebih banyak kombinasi.
Kalo sekarang sih lebih suka maen Solitaire \:d/
Thx, Mas Pri, anakku suka bgt
10 besar? comment dulu baru baca bukan? :d
Mas Pri, bikin cheat game laennya juga dunk:d
hidup Game House Mania !! :P
Hihi…lumayan, bisa kembali ke 10 besar :)>-
aku biasanya pake softice kalo pengen maen curang… :D
ikutan nyobain ah …
Sudah ada belon di Google Gadget ya ?
Trus? saya masih tetep bingung 8-|
Terus terang aku belum baca, tapi yg penting komen dulu.
(*** Kabur ***)
Owh, Really? :-?
sodaranya TextTrist ya?!?! :-b
ngetest komentar :)
20 besar
lagi-lagi 20 besar….
**OOT**
Koq avatar2-nya ga muncul Mas Pri? Atau browser saya yang salah… :(
gravatar down lagi ?
om pri caranya nulis source code di wordpress gimana ??, saia nulis source code di wordpress malah ancur di kacoin ama tinymce ?? :((
Wah, sekarang sudah pake linux. :d
baca komen dulu ah
#21: saya juga mengalami :D akhirnya setelah chat-chit-chet dengan Priyadi, kesimpulannya tanggalkan saja tinyMCE. :)
Btw pri, skor tinggi tanpa cheat? ah yang benerrrrr.. posting malem-malem biar gak rusak puasanya karena boong ya. hihihihii
#25 jadi solusinya apa donk ??
tinymce di del trus ?? nulis codenya pake apaa ??
sekalian tes browser :d
wah… emang game house bisa dipake tua muda ya :d… ada ga sih text twist yang bahasa indonesia \:d/… buat dong mas pri gamenya…
#22, #26: matiin tinyMCE, terus pakai plugin code autoescape
#27: masalahnya, kata2 dalam bahasa indonesia itu relatif panjang2. jadi agak susah dibikin texttwistnya.
wuah, masa ngegame aja sampe perlu coding?
Belum bisa nyobain nih
#28
ok dech mas pri ntar saia matiin MCE nya trus nyobah in plug in nya :D
Mas pri bisa bikin crack game ini ke bhs.indonesia? bakalan asyik tuh… \:d/
nge tes browser!
gamehouse keren
tes browser :d
:d pasti gak tidur tu bikin cheatnya… mpe saur….
!oren , !scramble **nostalgia irc** :d
wah pengen nyontek skripnya buat di tungsten tuh. sayang project python for PalmOS gak dilanjutin lagi tuh. ada juga Lua for palmOS, tapi gak ngerti sintaksnya :((
:D hieoheoheoheio.. semuanya pernah nyantel di MIRc yah :D :D heuheueh.. teteupz ga ngerti ahh.. si om pri ga pake chat soalnya jawabannya dikeep yah :d *kaburr*
Saya dulu juga suka main game sejenis di kumpulan game Hoyle Words.
Bagus u/ menambah pembendaharaan kosakata [yang saya lupakan keesokan harinya :((]
Useful code, thanx!
kedengarannya kok kayak WordZap?
ini game favorit di PDA, wah kalo lagi tunggu temen pake ini.
#43:
serupa tapi tak sama :)
wah keren keren.. tapi saya lagi seneng maen cake mania. hehehe
saya tetep seneng maen Luxor.. :D
maaf, koreksi untuk comment #49, link yang benar adalah http://wp.adhisimon.or.id/texttwist/
sorry soalnya lagi sakit kepala pas posting #-o
keren nih artikelnya, boleh saya featured ke http://toysfinder.blogspot.com ga mas? kl boleh kasih tau saya ke alamat e-mail saya, thanks banget.