Files
nonograms/src/composables/useHints.js
2026-02-08 01:06:19 +01:00

15 lines
359 B
JavaScript

import { computed } from 'vue';
import { calculateHints } from '@/utils/puzzleUtils';
export function useHints(solutionGrid) {
const hints = computed(() => calculateHints(solutionGrid.value));
const rowHints = computed(() => hints.value.rowHints);
const colHints = computed(() => hints.value.colHints);
return {
rowHints,
colHints
};
}