From 92b261fa3486e341f2bbec499662a726e6376913 Mon Sep 17 00:00:00 2001 From: Constantin Date: Wed, 15 May 2013 20:37:38 +0200 Subject: [PATCH 1/1] play.sh now picks 10 random words out of the dictionary instead of playing all words in order --- play.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/play.sh b/play.sh index 7b22b59..5ee9b2d 100755 --- 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 -- 2.30.2