게시판장기로 이해하는 규칙 엔진과 평가 함수 탐색예제 소스

예제 소스

장기로 이해하는 규칙 엔진과 평가 함수 탐색 · 파일 59개

SetupDialog.h

#pragma once

#include "Types.h"

#include <QDialog>

class QComboBox;
class QCheckBox;
class QSpinBox;

struct GameSettings {
    Formation choFormation = Formation::InnerElephant;
    Formation hanFormation = Formation::InnerElephant;
    enum class Mode { HumanVsHuman, HumanCho, HumanHan } mode = Mode::HumanCho;
    int aiDepth = 3;
    bool bikjangEnabled = true;
};

class SetupDialog : public QDialog {
    Q_OBJECT
public:
    explicit SetupDialog(QWidget* parent = nullptr);
    GameSettings settings() const;

private:
    QComboBox* choFormation_ = nullptr;
    QComboBox* hanFormation_ = nullptr;
    QComboBox* mode_ = nullptr;
    QSpinBox* depth_ = nullptr;
    QCheckBox* bikjang_ = nullptr;
};