diff options
author | Marvin Borner | 2020-04-10 19:19:07 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-10 19:19:07 +0200 |
commit | decd6b0f90c2cdacf4f8cb27aaa8ecbf863edd49 (patch) | |
tree | fe72b7b88056c36f9fb5487c6588bd74bbec0577 /qml/pages/Board.qml | |
parent | 17927de45e769d4dbac5b1547464b2618150cfb4 (diff) |
Added very basic lichess connection
Diffstat (limited to 'qml/pages/Board.qml')
-rw-r--r-- | qml/pages/Board.qml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/qml/pages/Board.qml b/qml/pages/Board.qml index 35e2e5e..799f24c 100644 --- a/qml/pages/Board.qml +++ b/qml/pages/Board.qml @@ -24,6 +24,14 @@ Page { pageStack.push(Qt.resolvedUrl("Login.qml")) } } + MenuItem { + text: qsTr("Random player") + onClicked: functions.start_seek() + } + MenuItem { + text: qsTr("Play against bot") + onClicked: functions.challenge("GodelEscherBot") + } } Column { @@ -37,6 +45,13 @@ Page { title: qsTr("Chess") } + Label { + id: information + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: grid.top + text: qsTr("Please start a game"); + } + Grid { property int row: 0 @@ -52,7 +67,11 @@ Page { i: index } } - Component.onCompleted: functions.fill() + Component.onCompleted: { + // functions.fill(); + functions.event_stream(); + // functions.challenge("GodelEscherBot"); + } } } } |