Skip to content

Instantly share code, notes, and snippets.

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);