simulate problem solving
This commit is contained in:
@@ -51,7 +51,7 @@ const pushAndProblemSolving20Percent = () => {
|
|||||||
<button @click="featureStore.simulate('pull')">
|
<button @click="featureStore.simulate('pull')">
|
||||||
simulate pull system
|
simulate pull system
|
||||||
</button>
|
</button>
|
||||||
<button @click="featureStore.simulate('pull')">
|
<button @click="featureStore.simulate('problem-solving')">
|
||||||
simulate pull and problem solving
|
simulate pull and problem solving
|
||||||
</button>
|
</button>
|
||||||
<button @click="featureStore.clearDashboard()">clear dashboard</button>
|
<button @click="featureStore.clearDashboard()">clear dashboard</button>
|
||||||
|
|||||||
@@ -78,7 +78,15 @@ export const useFeatureStore = defineStore('feature', {
|
|||||||
simulate(strategy: Strategy) {
|
simulate(strategy: Strategy) {
|
||||||
this.initBoard()
|
this.initBoard()
|
||||||
while (!this.isProjectFinished) {
|
while (!this.isProjectFinished) {
|
||||||
this.nextDay(strategy)
|
if (strategy === 'problem-solving') {
|
||||||
|
if (this.meta.totalDays % 5 === 0) {
|
||||||
|
this.nextDay('problem-solving')
|
||||||
|
} else {
|
||||||
|
this.nextDay('pull')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.nextDay(strategy)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const [worstFeature] = this.features.sort((a, b) =>
|
const [worstFeature] = this.features.sort((a, b) =>
|
||||||
a.qualityIssue > b.qualityIssue ? -1 : 1
|
a.qualityIssue > b.qualityIssue ? -1 : 1
|
||||||
|
|||||||
Reference in New Issue
Block a user