Skip to content

Commit

Permalink
Merge pull request #4 from spothound/minor-improvements
Browse files Browse the repository at this point in the history
Minor improvements
  • Loading branch information
spothound authored Jan 17, 2024
2 parents 61f7332 + 3d3aeea commit c0b1c99
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/ChessPuzzle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function handlePlayerMove (move: MoveEvent) {
pendingMoves = pendingMoves.slice(1)
runEnemyMove()
} else {
console.log('Invalid move, the correct move is: ' + pendingMoves[0])
invalidMove.value = true
new Audio(errorSound).play()
}
Expand All @@ -103,6 +104,7 @@ onMounted(() => {
})
function goBack () {
moves--
boardAPI?.undoLastMove()
invalidMove.value = false
}
Expand Down
1 change: 0 additions & 1 deletion src/components/TrainingSession.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ function nextPuzzle () {
// get a random index from unplayedPuzzles
const randomIndex = Math.floor(Math.random() * unplayedPuzzles.length);
currentPuzzle.value = unplayedPuzzles[randomIndex];
console.log(currentPuzzle.value)
}
nextPuzzle()
Expand Down
1 change: 0 additions & 1 deletion src/typed-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import type {
declare module 'vue-router/auto/routes' {
export interface RouteNamedMap {
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
'/__tests__/dashboard': RouteRecordInfo<'/__tests__/dashboard', '/__tests__/dashboard', Record<never, never>, Record<never, never>>,
'/[...all]': RouteRecordInfo<'/[...all]', '/:all(.*)', { all: ParamValue<true> }, { all: ParamValue<false> }>,
'/homepage': RouteRecordInfo<'/homepage', '/homepage', Record<never, never>, Record<never, never>>,
'/nested/menu1': RouteRecordInfo<'/nested/menu1', '/nested/menu1', Record<never, never>, Record<never, never>>,
Expand Down

0 comments on commit c0b1c99

Please sign in to comment.