Skip to content

"Умный" светофор с 2 бонусами#3

Open
michaeluskov wants to merge 14 commits intocri-2014:masterfrom
michaeluskov:master
Open

"Умный" светофор с 2 бонусами#3
michaeluskov wants to merge 14 commits intocri-2014:masterfrom
michaeluskov:master

Conversation

@michaeluskov
Copy link

No description provided.

Choose a reason for hiding this comment

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

Вот тут не понял, если условие выполняется - переключаемся в следующий цвет.
А если не выполняется, то ... ?

Copy link
Author

Choose a reason for hiding this comment

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

Если светофор "прогорел в фоне" больше, чем this.__usefulCoefficient * кол-во времени, которое по настройкам он должен прогореть, то переключиться на следующий. если нет, то ничего не делать, вернуться в то состояние, которое было в фоне, ибо и без этого возврат будет адекватным.

Choose a reason for hiding this comment

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

Все, понял. Норм!

@Zhigalov
Copy link

В целом ок, 💯

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

Comments