This is the code of a contrast discrimination task for both humans and animals.
This version is under modification starting from Aug 12th, 2021. We want to include RT dependent timeout to encourage animals to guess less and use the sensory information more. We'll see if it works :)