Initial commit
This commit is contained in:
14
src/composables/useHints.js
Normal file
14
src/composables/useHints.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user