fix: prevent premature solved status, add DFS boost button, mark boosted exports

This commit is contained in:
2026-02-13 07:03:08 +01:00
parent 43c0290fac
commit c3188bb740
7 changed files with 145 additions and 16 deletions

View File

@@ -4,11 +4,13 @@ import { useI18n } from '@/composables/useI18n';
const {
isPlaying,
isStuck,
speedLabel,
statusText,
step,
togglePlay,
changeSpeed
changeSpeed,
boost
} = useSolver();
const { t } = useI18n();
</script>
@@ -29,6 +31,10 @@ const { t } = useI18n();
<button class="btn-neon small" @click="changeSpeed">
{{ t('guide.speed') }}: {{ speedLabel }}
</button>
<button v-if="isStuck" class="btn-neon small boost-btn" @click="boost">
Boost (DFS)
</button>
</div>
</div>
</template>
@@ -68,4 +74,15 @@ const { t } = useI18n();
padding: 5px 15px;
font-size: 0.8rem;
}
.boost-btn {
border-color: #ffd700;
color: #ffd700;
box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}
.boost-btn:hover {
background: rgba(255, 215, 0, 0.1);
box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
</style>

View File

@@ -47,7 +47,9 @@ const getShareData = () => ({
grid: store.playerGrid,
size: store.size,
currentDensity: store.currentDensity,
guideUsageCount: store.guideUsageCount
guideUsageCount: store.guideUsageCount,
hasUsedBoost: store.hasUsedBoost,
boostUsageCount: store.boostUsageCount
});
const downloadShareSVG = () => {