Last active
October 21, 2018 19:14
-
-
Save KKostya/bd05fc502f404a468b1488df51219211 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let reward = (scenario) => | |
if( scenario.prize == scenario.first_guess ) { | |
if(scenario.choice == Stay) prize else 0.0; | |
} else { | |
if(scenario.choice == Swap) prize else 0.0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment