Refer to Game2048, find as much code smells as possible for each category. It’s possible that there is no code smell for a category. You can identify category by category or go through code top to bottom and identify code smell for each section.
- Duplicated code
- Deodorant comment
- Long method
- Dead code
- Lazy class
- Primitive obsession
- Switch statement
- Speculative generality
- Feature envy
- Temporary field
- Inappropriate intimacy
Example
Line 120
private static bool Update(ulong[,] board, Direction direction, out ulong score)
Code smell: Long method
Explanation: The method is 90 lines, it might be doing many things which becomes difficult to understand and change
You also can use image for the code smell
Please refactor and submit your repository
Ref :
1.搞笑談軟工
2.sourcemaking