geht doch net :-(
[multypo.git] / play.sh
diff --git a/play.sh b/play.sh
index 7b22b59c4786dc546cb6d313e42156d0268e5eaa..f51371ef1d1fe426ca76e384dafd54feac790a2f 100755 (executable)
--- a/play.sh
+++ b/play.sh
@@ -1,4 +1,8 @@
 #!/bin/sh
 
-cat words.txt | ./game
+# you should probably download a txt dictionary of your favourite language and use that as a words.txt
+
+WORDSTOPLAY=10
+
+sort -R dict.txt | egrep '^[A-Za-z]{5,}$' | head -n $WORDSTOPLAY | tr [:upper:] [:lower:]