mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 13:03:08 +02:00
Refactor reversi game
This commit is contained in:
parent
4a977cd523
commit
91ebd310b7
1 changed files with 3 additions and 5 deletions
|
@ -159,11 +159,9 @@ export default Vue.extend({
|
|||
canPutEverywhere: this.game.settings.canPutEverywhere,
|
||||
loopedBoard: this.game.settings.loopedBoard
|
||||
});
|
||||
this.logs.forEach((log, i) => {
|
||||
if (i < v) {
|
||||
this.o.put(log.color, log.pos);
|
||||
}
|
||||
});
|
||||
for (const log of this.logs.slice(0, v)) {
|
||||
this.o.put(log.color, log.pos);
|
||||
}
|
||||
this.$forceUpdate();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue