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
| import 'dart:math'; | |
| bool oneRun({bool stickToInitialChoice=true}) { | |
| var doors = [false, false, false]; | |
| var winDoor = Random().nextInt(3); | |
| doors[winDoor] = true; | |
| // Player selected this door at the start of the game | |
| var initialChoice = Random().nextInt(3); | |