Commit 7191be38 authored by yu's avatar yu

1

parent 5645ceee
......@@ -172,13 +172,13 @@ export default class Game {
this.page = 1;
this.start = true;
this.lists = [];
this.data.sort(function () {
return (0.5 - Math.random());
});
for (let i = 0; i < this.data.length; i++) {
let data = this.data[i];
this.lists.push(new Option(data, i + 1));
}
this.lists.sort(function () {
return (0.5 - Math.random());
});
this.state = GAME_STATE.WAIT;
this.total = this.lists.length;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment