Compare commits

...

2 Commits

Author SHA1 Message Date
Niels Simenon c43be9df13 1.25.4 2023-04-10 16:34:56 +02:00
Niels Simenon 8aef44b2d9 Moved consonant bias to config, increased slightly to 0.6. 2023-04-10 16:34:53 +02:00
4 changed files with 5 additions and 4 deletions

View File

@ -100,6 +100,7 @@ module.exports = {
letters: { letters: {
length: 9, length: 9,
timeout: 60, timeout: 60,
consonantBias: 0.6, // for auto fill
// http://www.thecountdownpage.com/letters.htm // http://www.thecountdownpage.com/letters.htm
vowels: { vowels: {
a: 15, a: 15,

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.25.3", "version": "1.25.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.25.3", "version": "1.25.4",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"better-sqlite3": "^8.3.0", "better-sqlite3": "^8.3.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.25.3", "version": "1.25.4",
"description": "Game host for SChat 2-powered chat sites", "description": "Game host for SChat 2-powered chat sites",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {

View File

@ -157,7 +157,7 @@ function onCommand(args, context) {
} }
if (context.command === 'letsgo' || ['start', 'go', 'auto', 'random'].includes(context.subcommand)) { if (context.command === 'letsgo' || ['start', 'go', 'auto', 'random'].includes(context.subcommand)) {
start(context, Array.from({ length: config.letters.length }, () => (Math.random() < 0.55 ? 'c' : 'v')).join('')); // a slight bias towards consonants seems to give better boards start(context, Array.from({ length: config.letters.length }, () => (Math.random() < config.letters.consonantBias ? 'c' : 'v')).join('')); // a slight bias towards consonants seems to give better boards
return; return;
} }