Skip to content

Commit

Permalink
fix default crossword
Browse files Browse the repository at this point in the history
  • Loading branch information
rjkat committed Nov 9, 2024
1 parent c2a72b7 commit 8915ecb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion client/components/CfzLauncher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,19 @@ export default Vue.extend({
showLeave: Boolean,
crossword: {
type: Object,
default: function () { return defaultCrossword; }
default: function () {
const grid = defaultCrossword.grid;
for (let solverid = 0; solverid < 2; solverid++) {
for (let row = 0; row < grid.height; row++) {
for (let col = 0; col < grid.width; col++) {
const cell = grid.cells[`${row},${col}`];
cell.acrossMask |= (1 << solverid);
cell.downMask |= (1 << solverid);
}
}
}
return defaultCrossword;
}
},
},
computed: {
Expand Down

0 comments on commit 8915ecb

Please sign in to comment.