// mainWindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtWidgets>
#include "cardsDisplay.h"

class MainWindow : QObject
{
 Q_OBJECT
  
 private:
    QWidget mainWindow;
    QWidget buttons;
    QWidget startButtons;
    CardsDisplay cards{CARDS_NUM};
    QPushButton* higherButton;
    QPushButton* lowerButton;
    QPushButton* newGameButton;
    
    QLabel scoreLabel;
    QLabel status;
    
    QBoxLayout* highLowLayout;
    QBoxLayout* mainLayout;
 
    static const int CARDS_NUM;
    bool gameRunning = false;
    int score = 100;
    int * currentDeck = 0;
    int currentCard = 0;
    
    void updateScore(int);
    void newMove(int n);
    
 public:
    MainWindow();
    ~MainWindow();
    QWidget* getWidget(){ return &mainWindow; }
    
 public slots:
    void newGame();
    void higher();
    void lower();
   
};
#endif