Exercise11-FiniteState

From Lupyan Lab
Jump to: navigation, search


This is a finite-state machine (automaton).
Fsm.png

Some examples of legal strings that it can generate:
VXXXVPXXXXVPS
VXXXVPS
TPPTS
XXXVS
VXXVPS


Part 2

Participants see letters in boxes around a central point. The letters change colors (from white to pink) in the order specified by the string generated by the automaton. The participant's task is to click on the letter currently appearing in pink, as quickly as possible. Learning the grammar shows up as speeding up in processing of legal sequences and slowing down in the processing of illegal ones.


Your task should read in a "sentence" of legal strings. The current letter in the string should turn pink. Once the subject clicks on it, it should return to white, the response (see below) should be recorded, and after a certain delay(say, 500 ms) the next letter should turn pink. Only advance to the next letter when the active letter box is clicked on. If the subject clicks on the wrong box, do not advance. Include a break screen in your code: Every 5 minutes, display a text screen saying "Please take a short break. Click a mouse button to continue"

Your output file should have the following columns:

There's no accuracy column because only correct responses are being recorded.

Personal tools
Namespaces
Variants
Actions
Navigation
Download and Install
Notes for each class - will be updated ~week before each class.
Programming Exercises
Projects
Quick reference
Toolbox