When I first opened the MyRuler.java file from Mari-Lee Flestado I did a quick scan over all the code to get an overall impression of it. At first glance I found the code to be clear and organized. I saw lots of clear, logical statements and many single line comments. It took slightly longer to realize the strategy the code implemented but overall I had a really easy time understanding the specifics of the program. Her ruler worked very well for what it was when I tested it out. It implemented exactly what her strategy specifics outlined. When I first started coding out my codeRuler I thought of some of the same strategies she used like creating more knights and peasants when the opposer has more.
CODE/FORMATTING VIOLATIONS FOUND
| File | Lines | Violation | Comments |
| MyRuler.java | 44, 53, 57, * | EJS-7 | no whitespace included in line between () and { |
| MyRuler.java | 38, 79, 87, * | EJS-7 | no blank line between logical sections of code |
| MyRuler.java | 1,2,3, * | EJS-8 | Tabs used, not converted to whitespace |
| MyRuler.java | 109 | EJS-9 | ‘np’ is not a meaningful name |
| MyRuler.java | 38, 43, 52, * | EJS-37 | comments repeat code, does not add useful information |
| MyRuler.java | 105, 110, 120, * | EJS-76 | Expression statements used instead of block statements |
| MyRuler.java | 20, 98 | ICS-SE-Java-6 | Does not start with a capital and end with period. Should be a more complete sentence. |