more stuff from the schönen künste
authorConstantin <constantin@exxxtremesys.lu>
Thu, 25 Jul 2013 12:43:44 +0000 (14:43 +0200)
committerConstantin <constantin@exxxtremesys.lu>
Thu, 25 Jul 2013 21:17:48 +0000 (23:17 +0200)
play.sh
qt/player.cpp
qt/player.h

diff --git a/play.sh b/play.sh
index 6c3b185f3961edf18b957e1664cbaa6e37df0a54..288dbcf71d9f3077cb582993bafdab4ff6e53823 100755 (executable)
--- a/play.sh
+++ b/play.sh
@@ -4,5 +4,5 @@
 
 WORDSTOPLAY=10
 
 
 WORDSTOPLAY=10
 
-sort -R dict.txt | egrep '^[A-Za-z]{5,}$' | head -n $WORDSTOPLAY | tr [:upper:] [:lower:]  | qt/multypo
+sort -R dict.txt | sed 's/\/.*//' | egrep '^[A-Za-z]{5,}$' | head -n $WORDSTOPLAY | tr [:upper:] [:lower:]  | qt/multypo
 
 
index 937bbab739dddb597f1bbf310a3187ac6a0c5a4a..69e7651432a114a5b6309c11d399e525cfbc715f 100644 (file)
@@ -10,7 +10,7 @@ static QString colorToString(QColor col)
                        .arg(col.blue(), 2, 16, QChar('0'));
 }
 
                        .arg(col.blue(), 2, 16, QChar('0'));
 }
 
-Player::Player(QWidget* parent) {
+Player::Player(QWidget* parent) : score(0) {
        theLabel = new QLabel (parent);
        parent->layout()->addWidget(theLabel);
        modifyable = true;
        theLabel = new QLabel (parent);
        parent->layout()->addWidget(theLabel);
        modifyable = true;
index c74413cd1831840162e0f9ceca6daeb13e96ba70..0facdd5478ded4f3f0de4bbcecc46afa5a1d051a 100644 (file)
@@ -18,8 +18,9 @@ public:
        bool hasName();
        QString getName();
        QString getCurrentLine();
        bool hasName();
        QString getName();
        QString getCurrentLine();
-       int score;
        void setWaiting(QString labeltext);
        void setWaiting(QString labeltext);
+
+       int score;
 };
 
 #endif // PLAYER_H
 };
 
 #endif // PLAYER_H