Skip to content

A simple game to teach explore vs exploit strategies in AI.

License

Notifications You must be signed in to change notification settings

IMAGINARY/sumory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sumory

A simple game to teach explore vs exploit strategies in AI.

Configuration

The config.json file supports the following properties:

  • Languages: Object where keys are 2-letter iso language codes and values are language names. This is used to build the language switch menu. Each language must have a corresponding translation file in the tr directory.
  • defaultLanguage: The application will start with this language by default.
  • showLanguageSwitcher: If set to false, the language switch menu won't be shown.
  • cardRevealDelay: (default: 400) Time in milliseconds it takes to flip each card on the final reveal.
  • analysisTimeout: (default: 60) Time in seconds after which the end game analysis will close automatically.

Query string arguments

  • lang: Use a 2-letter iso language code to override the default language.
  • nochart: If set to true, the bar chart in the explanation won't be shown.
  • cards: 21 comma-separated integers to use as values.

Entry points

  • index.html: For use as an exhibit or web app.
  • embed.html: To embed it on e-learning courses and the like.

Compilation

This app is built using several compilable languages:

  • The HTML pages are built from pug template files.
  • The CSS stylesheet is pre-compiled from sass files.
  • The JS scripts are trans-compiled from es6 (ES2015) files.

To make any modifications re-compilation is necessary. You should install:

  • node and npm
  • yarn
  • gulp (install globally)

Afterwards run the following in the command line:

cd src
yarn

After it runs succesfuly you can compile as needed:

  • sass (stylesheets)

    gulp styles
    
  • scripts (ES6)

    gulp scripts
    
  • pug (HTML pages)

    gulp html
    
  • all

    yarn run build
    

Credits

Original concept by Aaron Montag and Andreas Daniel Matt. Developed by Eric Londaits for IMAGINARY gGmbH.

Spanish and French translations by Daniel Ramos.

License

Copyright (c) 2020 IMAGINARY gGmbH Licensed under the MIT License (see LICENSE)

About

A simple game to teach explore vs exploit strategies in AI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages