Skip to content

Instantly share code, notes, and snippets.

View jessesnyder's full-sized avatar

Jesse Snyder jessesnyder

View GitHub Profile
@jessesnyder
jessesnyder / gist:e870f537a0e7eae4ea280f1872f4d8d2
Created January 22, 2020 04:46
Experiment delegation/strategy
from . import games
def extra_parameters():
config = dlgr.config.get_config()
config.register('mexp_turn_type', six.text_type, [], False)
class MyExperiment(dlgr.experiments.Experiment):
"""Experiment that delegates turn-taking implementation based on configuration"""
### Keybase proof
I hereby claim:
* I am jessesnyder on github.
* I am jessesnyder (https://keybase.io/jessesnyder) on keybase.
* I have a public key whose fingerprint is B4BB 0871 DF3C 38A8 5CD7 E1F7 D345 2DAA 05BB C885
To claim this, I am signing this object: