summaryrefslogtreecommitdiff
path: root/quackleio
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2016-07-03 01:55:20 -0500
committerJohn Fultz <jfultz@wolfram.com>2016-07-03 01:55:20 -0500
commit0cda99549250c87ab9c9b20044767a7615e279c6 (patch)
treea53d4b1002ff6ae29f63e16aab25dab3082ba9ea /quackleio
parent63e3348ace58bb8cc990d418269df61f640fc234 (diff)
Add a scoring option preference.
A checkbox in the preferences dialog now allows you to configure Quackle so that plays with illegal words which are left unchallenged score zero. Obviously, off by default. But useful for entering games as part of the Marty Gabriel/Scott Garner world record scoring attempt. This is apparently what the Guinness folks are looking for.
Diffstat (limited to 'quackleio')
-rw-r--r--quackleio/util.cpp2
-rw-r--r--quackleio/util.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/quackleio/util.cpp b/quackleio/util.cpp
index 817edac..5530f16 100644
--- a/quackleio/util.cpp
+++ b/quackleio/util.cpp
@@ -34,7 +34,7 @@ UtilSettings *UtilSettings::self()
}
UtilSettings::UtilSettings()
- : octothorpBritish(true), vowelFirst(false)
+ : octothorpBritish(true), vowelFirst(false), scoreInvalidAsZero(false)
{
m_self = this;
}
diff --git a/quackleio/util.h b/quackleio/util.h
index 10a57a2..62545bb 100644
--- a/quackleio/util.h
+++ b/quackleio/util.h
@@ -42,6 +42,7 @@ public:
bool octothorpBritish;
bool vowelFirst;
+ bool scoreInvalidAsZero;
private:
static UtilSettings *m_self;