Esempio n. 1
0
void Game::on_pushButton_2_clicked()
{
    answer = 0;
    Game1();
   // Game1Check();

    int flag=Game1Check();
    //if (flag==1){Game1();}
}
Esempio n. 2
0
// Our main program
int main(){

	// Here we set the number of rows of our game, and wether we are using pie rule or not!
	Hex_Game Game1(7,true);

	Game1.Game();

	int pause;

	cin >> pause;

	// Or final line!
	return 0;
};
Esempio n. 3
0
Game::Game(QWidget *parent) :

    QMainWindow(parent),
    ui(new Ui::Game)
{
    ui->setupUi(this);
    it = new items(ui->graphicsView);
    arr=new int [5];
    sarr=new int [5];
    int kk = ui->tabWidget->currentIndex();
    if (kk == 0)Game1();
    if (kk == 1)Game2();
    if (kk == 2)Game3();
    alarmcheck=0;
    checking=0;

}
Esempio n. 4
0
void Game::on_pushButton_6_clicked(){

    QMessageBox msgBox;
    msgBox.setWindowTitle("Alarm");
    msgBox.setStandardButtons(QMessageBox::Yes);

    if (alarmcheck==1){
        msgBox.setText("Good Morning!");
        QCoreApplication::exit();
    }
    else{
        Game1();
        msgBox.setText("You need to win one of the Games first!");
    }


    msgBox.exec();

}
Esempio n. 5
0
void Game::on_tabWidget_currentChanged(int index)
{
    if (index == 0) Game1();
    if (index == 1) Game2();
    if (index == 2) Game3();
}