Add moves count
This commit is contained in:
parent
4ffca9dcb8
commit
680bcbdda8
source
@ -38,4 +38,8 @@ export default class Predictor {
|
||||
this.journal.makeMove(value, prediction);
|
||||
return prediction;
|
||||
}
|
||||
|
||||
stepCount() {
|
||||
return this.journal.length;
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,8 @@ new Vue({
|
||||
},
|
||||
pass(value) {
|
||||
const prediction = this.predictor.pass(value);
|
||||
console.log('PREDICTED', prediction, 'PASS', value);
|
||||
const step = this.predictor.stepCount();
|
||||
console.log('STEP', step, 'PREDICTED', prediction, 'PASS', value);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user