-#!/bin/sh
+#!/bin/bash
# you should probably download a txt dictionary of your favourite language and use that as a words.txt
WORDSTOPLAY=10
+WORDSFILE="$1"
+if [[ -z "$WORDSFILE" ]]; then
+ WORDSFILE="words.txt"
+fi
-sort -R dict.txt | sed 's/\/.*//' | egrep '^[A-Za-z]{5,}$' | head -n $WORDSTOPLAY | tr [:upper:] [:lower:] | qt/multypo
+export LC_ALL=C # dont do unicode stuff in egrep
+sort -R "$WORDSFILE" | sed 's/\/.*//' | egrep '^[A-Za-z]{5,}$' | head -n $WORDSTOPLAY | tr [:upper:] [:lower:] | qt/multypo
gameStarted(false)
{
/* Prepare colors */
- setStyleSheet("background-color: black; color: green; font-size: 55pt");
+ setStyleSheet("background-color: black; color: green; font-size: 45pt");
/* Prepare conents */
setLayout(new QVBoxLayout(this));