In creating an n-back game (
http://en.wikipedia.org/wiki/N-back), whenever a stimulus from n times back is presented to the player again, the player must correctly give a response such as a "spacebar", <=, or =>.
For example: In a 2 back version of the game, if a small square appears in position 1, then position 2, then 1, the player should hit => (right) as a way of signaling that the smaller square was in the same position 2 (n) times back.
My Question: How would I go about creating a correct/incorrect response for a stimulus that is now being presented and that was also presented n times back? In other words, I can put the square in random spots, but how would I make an n-back game out of it?
Thank you,
James