#include "mainwindow.h" #include #include // Точка входа: запрашивает размер поля (3–8) и запускает игру. int main(int argc, char *argv[]) { QApplication app(argc, argv); bool ok = false; const int size = QInputDialog::getInt( nullptr, QObject::tr("Выключить свет"), QObject::tr("Размер поля (3–8):"), 5, 3, 8, 1, &ok); if (!ok) { return 0; } MainWindow window(size); window.show(); return app.exec(); }