diff options
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"); + } } } } |