Skip to content

Initial commit.#1

Open
kersh1337228 wants to merge 2 commits into
hBuzzy:masterfrom
kersh1337228:master
Open

Initial commit.#1
kersh1337228 wants to merge 2 commits into
hBuzzy:masterfrom
kersh1337228:master

Conversation

@kersh1337228

Copy link
Copy Markdown

No description provided.

@hBuzzy hBuzzy left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Принято.

Поправьте замечания.

Comment thread src/gamefield/gamefield.cpp Outdated
}

uint GameField::CountScore() noexcept {
uint vseq = 2, hseq = 2, score = 0;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давайте все же последовательность с большой буквы.

Comment thread src/gamefield/gamefield.cpp Outdated
vseq = 1;
}
}
if (vseq > 2) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Выделите двойку в переменную и замените в остальных местах.

Comment thread src/gamefield/gamefield.h
uint score_ = 0;
QTimer timer_;
const uint colorSwitchLimit_ = 3;
uint colorSwitches_ = 0;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Обычно так все же именуются массивы и т.д. Предлагаю все же colorSwitchCount или около, тогда и в выражении ниже это будет смотреться понятнее.

colorSwitches_ < colorSwitchLimit_,

-Required syntax fixes.

@hBuzzy hBuzzy left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Принято.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants