You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
636 B

#ifndef PRIMARY_GENERATOR_H_
#define PRIMARY_GENERATOR_H_
#include "question_generator.h"
class PrimaryGenerator : public QuestionGenerator {
public:
std::vector<std::string> GenerateQuestions(int count,
const std::string& username) override;
bool MeetsDifficultyRequirements(const std::string& question) override;
private:
static constexpr int kMinOperands = 2;
static constexpr int kMaxOperands = 5;
static constexpr int kMinNumber = 1;
static constexpr int kMaxNumber = 100;
std::string GenerateSingleQuestion();
};
#endif // PRIMARY_GENERATOR_H_