summaryrefslogtreecommitdiff
path: root/resources/js/components/chessTable.vue
blob: 45eeb994f97036701b614e1a7654f22611c2bdeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<template>
    <div class="">
        <chessboard :showThreats="showThreats" @onMove="showInfo"></chessboard>
    </div>

</template>

<script>
import {chessboard} from 'vue-chessboard'
import jQuery from 'jquery'

export default {
    name: 'App',
    components: {
        chessboard
    },
    data () {
        return {
            currentPosition: {},
            showThreats: false,
            positionNumber: 0,
            started: false,
            isStartModalActive: true,
            positionInfo: {},
        }
    },
    methods: {
        showInfo(info) {
            this.positionInfo = info
        }
    }
}
</script>