Skip to content

Commit

Permalink
Add start game
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert-R committed Feb 19, 2024
1 parent 56dca02 commit 280b284
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions backend/experiment/rules/matching_pairs_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.utils.translation import gettext_lazy as _

from .base import Base
from experiment.actions import Final, Playlist, Trial
from experiment.actions import Final, Playlist, Trial, Info
from experiment.actions.playback import MatchingPairs
from result.utils import prepare_result

Expand All @@ -14,16 +14,18 @@
class MatchingPairsLite(Base):
ID = 'MATCHING_PAIRS_LITE'
num_pairs = 8
show_animation = True
score_feedback_display = 'bottom_right'
show_animation = False
score_feedback_display = 'small-bottom-right'
contact_email = 'aml.tunetwins@gmail.com'

def first_round(self, experiment):
# 2. Choose playlist.
playlist = Playlist(experiment.playlists.all())

info = Info('',
heading='Press start to enter the game',
button_label='Start')
return [
playlist
playlist, info
]

def next_round(self, session):
Expand Down

0 comments on commit 280b284

Please sign in to comment.