From 94e605eb04c615230dbfb2994ec1d0fd7de07c51 Mon Sep 17 00:00:00 2001 From: Luca Hendrik Helms Date: Thu, 18 Jul 2024 16:27:03 +0200 Subject: [PATCH 1/2] remove autoCastle: true --- README.md | 4 ++-- src/App.vue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 460f372..4f513fe 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ import type { BoardApi, BoardConfig } from 'vue3-chessboard'; let boardAPI: BoardApi; const boardConfig: BoardConfig = { - coordinates: false, + coordinates: true, }; function handleCheckmate(isMated: string) { @@ -117,7 +117,7 @@ import 'vue3-chessboard/style.css'; let boardAPI; const boardConfig = { - coordinates: false, + coordinates: true, }; function handleCheckmate(isMated) { diff --git a/src/App.vue b/src/App.vue index 0bbb6c1..6daf090 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,9 +4,9 @@ import { TheChessboard, type BoardApi, type BoardConfig } from '@/index'; let boardAPI: BoardApi | undefined; const boardConfig: BoardConfig = { - coordinates: true, - autoCastle: false, -}; + coordinates: true +} + const playerColor: 'white' | 'black' | 'both' | undefined = undefined; From fa83b84665acd801be60de12c9e2d760c4fd7f9f Mon Sep 17 00:00:00 2001 From: Luca Hendrik Helms Date: Thu, 18 Jul 2024 16:29:04 +0200 Subject: [PATCH 2/2] fix formatting --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6daf090..5765ed7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,8 +4,8 @@ import { TheChessboard, type BoardApi, type BoardConfig } from '@/index'; let boardAPI: BoardApi | undefined; const boardConfig: BoardConfig = { - coordinates: true -} + coordinates: true, +}; const playerColor: 'white' | 'black' | 'both' | undefined = undefined;