Skip to content

Tetris v2.0#12

Open
napstergit1 wants to merge 3 commits into
hBuzzy:masterfrom
napstergit1:Tetris-v2.0
Open

Tetris v2.0#12
napstergit1 wants to merge 3 commits into
hBuzzy:masterfrom
napstergit1:Tetris-v2.0

Conversation

@napstergit1

Copy link
Copy Markdown

No description provided.

Из проблем на данный момент:
1) Нужно показывать следующую фигуру
2) Исправить код стайл
3) Проверить код на наличие лишнего  "мусора"
4) Корректно обрабатывать проигрыш(сейчас немного не в тот момент срабатывает сигнал)
Исправлены замечания.
Корректное отображение следующей фигуры, очков и всего что необходимо по заданию.

@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 gamefield.cpp Outdated
Comment on lines +173 to +174


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 gamefield.cpp Outdated
spawnNextFigure();
SetFigurePosition(0, columnsNumber_ / 2);
CheckLine();
bool HasCollision = HasCollisionMove(1, 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 gamefield.h Outdated
void GameOver();

public:
void SetNextFigureGrid(QVector<QVector<int>> fig);

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.

Не сокращайте названия fig -> figure

Comment thread nextfiguregamegrid.cpp Outdated
Comment on lines +10 to +11


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 nextfiguregamegrid.h Outdated
QVector<QVector<int>> nextFigure_;
int blockSize_;

Tetramino *tetr_;

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 nextfiguregamegrid.h Outdated

QVector<QVector<int>> GetNextFigure();
signals:
void nextFigureChanged();

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 tetramino.cpp Outdated
Tetramino::~Tetramino() {}

void Tetramino::SetRandomFigure() {
int randNumb = 1 + rand() % 7;

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.

7 - магическое число

Исправлены замечания

@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