File size: 861 Bytes
6b6430f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from pathlib import Path

import live

HERE = Path(__file__).parent
WORDS = ["cat", "dog", "fish", "bird", "house", "tree", "flower", "sun", "moon", "star", "car", "bicycle",
         "boat", "airplane", "train", "rocket", "cup", "chair", "table", "lamp", "clock", "key", "umbrella",
         "hat", "shoe", "glasses", "guitar", "pizza", "apple", "banana", "ice cream", "cake", "heart",
         "smiley face", "snake", "spider", "butterfly", "mountain", "cloud", "lightning", "snowman",
         "ghost", "crown", "sword", "light bulb", "phone", "envelope", "scissors", "pencil", "eye"]


def questions(context):
    return ("A sketch drawn by a person in a guessing game.", {"guess": {
        "type": "choice", "instructions": "What is this sketch meant to be?",
        "criteria": {w: w for w in WORDS}}})


app = live.make_app(questions, HERE / "static")