play.sh now picks 10 random words out of the dictionary instead of playing all words...
authorConstantin <constantin@exxxtremesys.lu>
Wed, 15 May 2013 18:37:38 +0000 (20:37 +0200)
committerConstantin <constantin@exxxtremesys.lu>
Wed, 15 May 2013 18:37:38 +0000 (20:37 +0200)
play.sh

diff --git a/play.sh b/play.sh
index 7b22b59c4786dc546cb6d313e42156d0268e5eaa..5ee9b2dfc032701d627b179b4ffb62de2d40b15e 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 words.txt | fgrep -v \" | head -n $WORDSTOPLAY | ./game