all strategy

This commit is contained in:
Julien Calixte
2023-07-23 22:54:52 +02:00
parent ba651d0a9f
commit 337670af51

View File

@@ -8,7 +8,14 @@ const featureStore = useFeatureStore()
onMounted(() => featureStore.initBoard()) onMounted(() => featureStore.initBoard())
const problemSolving20Percent = () => { const pullAndProblemSolving20Percent = () => {
if (featureStore.meta.totalDays % 5 === 0) {
featureStore.nextDay('problem-solving')
} else {
featureStore.nextDay('pull')
}
}
const pushAndProblemSolving20Percent = () => {
if (featureStore.meta.totalDays % 5 === 0) { if (featureStore.meta.totalDays % 5 === 0) {
featureStore.nextDay('problem-solving') featureStore.nextDay('problem-solving')
} else { } else {
@@ -27,7 +34,12 @@ const problemSolving20Percent = () => {
<div> <div>
<button @click="featureStore.nextDay('push')">push system</button> <button @click="featureStore.nextDay('push')">push system</button>
<button @click="featureStore.nextDay('pull')">pull system</button> <button @click="featureStore.nextDay('pull')">pull system</button>
<button @click="problemSolving20Percent">pull and problem solving</button> <button @click="pushAndProblemSolving20Percent">
push and problem solving
</button>
<button @click="pullAndProblemSolving20Percent">
pull and problem solving
</button>
<button @click="featureStore.nextDay('problem-solving')"> <button @click="featureStore.nextDay('problem-solving')">
problem solving problem solving
</button> </button>