MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / __init__

Method __init__

brainworkshop.py:1194–1415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1192# All changeable game state variables are located in an instance of the Mode class
1193class Mode:
1194 def __init__(self):
1195 self.mode = cfg.GAME_MODE
1196 self.back = default_nback_mode(self.mode)
1197 self.ticks_per_trial = default_ticks(self.mode)
1198 self.num_trials = cfg.NUM_TRIALS
1199 self.num_trials_factor = cfg.NUM_TRIALS_FACTOR
1200 self.num_trials_exponent = cfg.NUM_TRIALS_EXPONENT
1201 self.num_trials_total = self.num_trials + self.num_trials_factor * \
1202 self.back ** self.num_trials_exponent
1203
1204 self.short_mode_names = {2:'D',
1205 3:'PCA',
1206 4:'DC',
1207 5:'TC',
1208 6:'QC',
1209 7:'A',
1210 8:'DA',
1211 9:'TA',
1212 10:'Po',
1213 11:'Au',
1214 12:'TCC',
1215 20:'PC',
1216 21:'PI',
1217 22:'CA',
1218 23:'IA',
1219 24:'CI',
1220 25:'PCI',
1221 26:'PIA',
1222 27:'CIA',
1223 28:'Q',
1224 100:'AA',
1225 101:'PAA',
1226 102:'CAA',
1227 103:'IAA',
1228 104:'PCAA',
1229 105:'PIAA',
1230 106:'CIAA',
1231 107:'P'
1232 }
1233
1234 self.long_mode_names = {2:_('Dual'),
1235 3:_('Position, Color, Sound'),
1236 4:_('Dual Combination'),
1237 5:_('Tri Combination'),
1238 6:_('Quad Combination'),
1239 7:_('Arithmetic'),
1240 8:_('Dual Arithmetic'),
1241 9:_('Triple Arithmetic'),
1242 10:_('Position'),
1243 11:_('Sound'),
1244 12:_('Tri Combination (Color)'),
1245 20:_('Position, Color'),
1246 21:_('Position, Image'),
1247 22:_('Color, Sound'),
1248 23:_('Image, Sound'),
1249 24:_('Color, Image'),
1250 25:_('Position, Color, Image'),
1251 26:_('Position, Image, Sound'),

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 3

enforce_standard_modeMethod · 0.95
default_nback_modeFunction · 0.85
default_ticksFunction · 0.85

Tested by

no test coverage detected