diff --git a/src/view/PvEView/PvEDoudizhuDemoView.js b/src/view/PvEView/PvEDoudizhuDemoView.js index de5d034..5f04677 100644 --- a/src/view/PvEView/PvEDoudizhuDemoView.js +++ b/src/view/PvEView/PvEDoudizhuDemoView.js @@ -77,8 +77,8 @@ function PvEDoudizhuDemoView() { const [selectedCards, setSelectedCards] = useState([]); // user selected hand card const [isPassDisabled, setIsPassDisabled] = useState(true); const [predictionRes, setPredictionRes] = useState({ prediction: [], hands: [] }); - const [hideRivalHand, setHideRivalHand] = useState(false); - const [hidePredictionArea, setHidePredictionArea] = useState(false); + const [hideRivalHand, setHideRivalHand] = useState(true); + const [hidePredictionArea, setHidePredictionArea] = useState(true); const cardArr2DouzeroFormat = (cards) => { return cards @@ -138,7 +138,7 @@ function PvEDoudizhuDemoView() { } // delay play for api player - if (gameState.currentPlayer !== mainPlayerId && considerationTime > apiPlayDelay) { + if (gameState.currentPlayer !== mainPlayerId) { await timeout(apiPlayDelay); } @@ -710,6 +710,7 @@ function PvEDoudizhuDemoView() { const changeApiPlayerDelay = (newVal) => { const found = gameSpeedMap.find(element => element.value === newVal); + console.log(newVal, found.delay); if (found) setApiPlayDelay(found.delay); } @@ -831,7 +832,7 @@ function PvEDoudizhuDemoView() { control={ } - label="Show Prediction Area" + label="AI Hand Face-Up" /> @@ -849,8 +850,8 @@ function PvEDoudizhuDemoView() {
- -
+ +
element.delay === apiPlayDelay).value} getAriaValueText={sliderValueText}