drawful

drawing game
git clone https://git.ce9e.org/drawful.git

commit
af2a169ae5379a13e55fdf2ec4245d1ba0c5b5ce
parent
0f7996df964bc5ff6b48bc8da0012c613c1e5e31
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-12-17 21:23
more words: electronics

Diffstat

M words.js 3 ++-

1 files changed, 2 insertions, 1 deletions


diff --git a/words.js b/words.js

@@ -5,11 +5,12 @@ var adjectives = ['affectionate', 'agreeable', 'amiable', 'bright', 'charming', 
    5     5 var onomatopoeia = ['chomp', 'cough', 'gargle', 'gibberish', 'hiccup', 'hum', 'whisper', 'bang', 'boom', 'splash', 'whoosh', 'beep', 'zap', 'roar', 'meow', 'pew pew'];
    6     6 var concepts = ['adventure', 'annoyance', 'artistry', 'childhood', 'comfort', 'communication', 'confusion', 'delight', 'disbelief', 'elegance', 'friendship', 'horror', 'kindness', 'luxury', 'pleasure', 'rhythm', 'sensitivity', 'silliness', 'speed', 'truth', 'uncertainty', 'union'];
    7     7 var movies = ['avengers', 'star wars', 'titanic', 'fast & furious', 'jurassic park', 'batman', 'james bond', 'transformers', 'avatar', 'toy story', 'harry potter', 'lord of the rings', 'finding nemo', 'pirates of the caribbean', 'snowwhite'];
   -1     8 var electronics = ['capacitor', 'diode', 'resistor', 'switch', 'voltage source'];
    8     9 
    9    10 export var randomWord = function() {
   10    11 	if (Math.random() < 0.2) {
   11    12 		return utils.randomChoice(adjectives) + ' ' + utils.randomChoice(animals);
   12    13 	} else {
   13    -1 		return utils.randomChoice([].concat(onomatopoeia, concepts, movies));
   -1    14 		return utils.randomChoice([].concat(onomatopoeia, concepts, movies, electronics));
   14    15 	}
   15    16 };