| Issue 7: | problem1.1: замечания | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Не надо писать в условном операторе условие и стейтмент на одной строчке. Этот блок кода явно просит заменить его на switch. if (direction % 4 == 0) res.x += length; else if (direction %4 == 1) res.y += length; else if (direction %4 == 2) res.x -= length; else if (direction %4 == 3) res.y -= length;
Mar 2, 2011
Project Member
#1
alsergbox
Status:
Verified
|