Changes
This commit is contained in:
parent
8cb5f4bdf4
commit
eae31d66f4
1 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ const PresentsPuzzle = ({
|
|||
const [aliceFound, setAliceFound] = useState(0);
|
||||
const [bobFound, setBobFound] = useState(0);
|
||||
const [isRunning, setIsRunning] = useState(false);
|
||||
const [currentStep, setCurrentStep] = useState(0);
|
||||
const [currentStep, setCurrentStep] = useState(-1);
|
||||
const [aliceOrder, setAliceOrder] = useState<number[]>([]);
|
||||
const [bobOrder, setBobOrder] = useState<number[]>([]);
|
||||
const [winner, setWinner] = useState<'alice' | 'bob' | 'tie' | null>(null);
|
||||
|
|
@ -406,7 +406,7 @@ const PresentsPuzzle = ({
|
|||
className="gap-2"
|
||||
>
|
||||
<Play className="w-4 h-4" />
|
||||
{currentStep === -1 ? 'Start' : 'Resume'}
|
||||
{currentStep === -1 ? 'Auto Play' : 'Resume'}
|
||||
</Button>
|
||||
<Button
|
||||
onClick={pauseSimulation}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue