Submission #1
Submitted: 2026-11-21T02:40:44.470649
| Processed: 2026-11-21T02:40:48.142482
| Ruleset: 1f979b67e2e2...
(260 rules)
Pipeline Output
google.gemma-3-27b-it
2062 + 319 tokens
Submission #1 — 2026-11-21 02:40:55
These suggestions were generated automatically by the Zita code quality tool. They are designed to help you improve your code, but they may occasionally be incorrect. If you're unsure about any suggestion, please ask your TA for clarification.
This is a wonderful first submission! It's great you're already reaching out for feedback and thinking about how to improve your code. I’m excited to see what you create as you continue to develop your Processing skills.
What you did well:
- You've done a great job setting up the basic structure of a Processing sketch with `setup()` and `draw()`, and you're already using multiple shapes which is fantastic!
- I'm really impressed with how you're using variables to store values and then performing calculations with them – that's a core skill!
- Your conditional statements and loops are working well, demonstrating a good understanding of how to control the flow of your program and repeat actions.
Opportunities to grow:
- To make your code more adaptable, try replacing the numbers you've directly used for sizes and positions with variables; that way, you can easily change those values without hunting through your code.
- For better readability, remember field (variable) names should begin with a lowercase letter — this is a common practice in coding that helps keep things clear.
- Consider exploring how you can write a function that both receives input values and sends a value back – this will help organize your code and make it more reusable. A simple example would be a function that adds two numbers.
Design Considerations (1)
- Use mouseX/key inside event handlers, and pass values to other functions
Rule Checklist
This is a deterministic set of rules we run against your program — no AI is used in the rules checklist.
Getting Started 5/5 passed
- ✅ You're using multiple shapes in your sketch [basic] (Has2DShapesRule — Uses 2+ shape functions, e.g. rect(), ellipse(), line())
- ✅ You've included a draw() function [basic] (HasDrawRule — Defines a void draw() function)
- ✅ You've included a setup() function [basic] (HasSetupRule — Defines a void setup() function)
- ✅ Your sketch has the standard Processing structure with setup() and draw() [basic] (HasStandardProcessingStructure — Defines both void setup() and void draw() with correct signatures)
- ✅ Your code compiles successfully [basic] (DoesItBuildRule — Sketch parses into a valid syntax tree (aliased from ProcessingJavaBuildRule; no compilation — processing-java is not run))
Variables 10/12 passed · 3 more to unlock
- ✅ You're performing calculations with your variables [basic] (GlobalVarArithmeticRule — Performs arithmetic on a global variable (write/modify))
- ✅ You're using variables to store values [basic] (GlobalVarDeclRule — Declares at least one global (main-tab) variable)
- ✅ You're initializing your global variables when you declare them [basic] (GlobalVarInitRule — Declares at least one global variable with an initializer (e.g. int score = 0, not just int score))
- ✅ You're using your global variables elsewhere in your code [basic] (GlobalVarUsageRule — Reads (uses) at least one global variable somewhere in the sketch)
- ✅ You've declared a local variable inside a function [basic] (HasLocalVarDeclRule — At least one local variable is declared (Q3.5) — distinct from fields)
- ✅ You're using your local variables after declaring them [basic] (HasLocalVarUseRule — At least one local variable is read or written after declaration (Q3.6))
- ✅ You're performing calculations with your local variables [basic] (LocalVarArithmeticRule — Performs arithmetic on a local variable)
- ✅ You're initializing your local variables when you declare them [basic] (LocalVarInitRule — Declares at least one local variable with an initializer)
- ❌ Replace hardcoded pixel numbers with variables for flexibility [intermediate] (PixelHardcodeIgnoranceRule — Drawing calls use variables instead of hardcoded pixel values)
- ❌ Field names should start lowercase, e.g. ballSpeed not BallSpeed [intermediate] (FieldNamingConventions — Field names follow lowerCamelCase)
- ✅ Your variable names follow good naming conventions [intermediate] (LocalVariableNamingConventions — Local variable names follow lowerCamelCase)
- ✅ Your variable names are concise [intermediate] (LongVariable — Variable names not too long (max 17 chars))
Conditionals 12/12 passed
- ✅ You're using conditional logic to make decisions in your code [basic] (HasConditionsRule — Uses at least two if statements (else-if counts))
- ✅ You're combining conditions with boolean operators [basic] (HasNoBooleanOperatorRule — Uses && or || somewhere in the sketch (not necessarily in an if condition; ! does not count))
- ✅ You're handling alternative cases with else [basic] (HasNoElseStatementRule — Uses else or else-if branching)
- ✅ You're combining conditions in an if statement with && or || [basic] (HasIfWithBooleanOperatorRule — An if (or else-if) condition uses && or || (! alone does not count))
- ✅ You're using curly braces with all control statements [intermediate] (ControlStatementBraces — Control statements use braces)
- ✅ Your boolean expressions are clean [intermediate] (SimplifyBooleanExpressions — Boolean expressions can be simplified)
- ✅ Your boolean returns are concise [intermediate] (SimplifyBooleanReturns — Boolean returns can be simplified)
- ✅ Your conditional logic is clean [intermediate] (SimplifyConditional — No null check before instanceof (instanceof is already false for null))
- ✅ Your code avoids deep nesting [advanced] (AvoidDeeplyNestedIfStmts — Avoids deeply nested conditionals (3+ levels))
- ✅ Your conditionals are well-structured [advanced] (CollapsibleIfStatements — Nested ifs can be collapsed)
- ✅ Your assignments are separate from expressions [advanced] (AssignmentInOperand — No assignments inside expressions)
- ✅ Your conditions are all meaningful [advanced] (UnconditionalIfStatement — No always-true/false conditions)
Iteration 1/2 passed · 3 more to unlock
- ✅ You're using loops to repeat actions [basic] (HasLoopRule — Uses a loop)
- ❌ Try using the % operator, for example to do something every Nth frame [basic] (HasModuloOperatorRule — Uses the modulo operator)
Functions 5/6 passed · 2 more to unlock
- ✅ You've created your own custom functions [basic] (HasUserDefinedMethod — Defines a function or class method of their own (top-level Processing callbacks like setup()/draw() don't count))
- ✅ You don't reassign function parameters [intermediate] (AvoidReassigningParameters — Function parameters not reassigned)
- ✅ Your parameter names follow good naming conventions [intermediate] (FormalParameterNamingConventions — Parameter names follow lowerCamelCase)
- ✅ Your function names follow good naming conventions [intermediate] (MethodNamingConventions — Function names follow lowerCamelCase)
- ✅ Your functions have descriptive names [intermediate] (ShortMethodName — Function names not too short (min 3 chars))
- ❌ Try writing a function or method that takes a parameter or returns a value, like int add(int a, int b) [intermediate] (HasReturnOrParamCallableRule — Has a function or class method that returns a value or takes a parameter (composed post-Zita from Marker-only rule 25 + Marker-only rule 28))
Academic Integrity Signals
No integrity signals flagged.
Out of Scope Usage
No out-of-scope features detected.
Not Taught Usage
No not-taught built-ins used.
Detailed History
Only one submission — detailed history requires multiple submissions.
61 total lines
50 lines of code
4 functions found
0 classes found
8 variables declared
2 max nesting depth
Arrays
1/22
Classes
7/26
Conditionals
12/14
Event Handling
6/6
Functions
8/19
Getting Started
7/7
Iteration
4/6
Variables
15/17
PDPS
24/25
Out of Scope
28/28
Integrity
5/5
Arrays
1/22
Classes
7/26
Conditionals
12/14
Event Handling
6/6
Functions
8/19
Getting Started
7/7
Iteration
4/6
Variables
15/17
PDPS
24/25
Out of Scope
28/28
{"three_positives": ["You've done a great job setting up the basic structure of a Processing sketch with `setup()` and `draw()`, and you're already using multiple shapes which is fantastic!", "I'm really impressed with how you're using variables to store values and then performing calculations with them \u2013 that's a core skill!", "Your conditional statements and loops are working well, demonstrating a good understanding of how to control the flow of your program and repeat actions."], "three_opportunities": ["To make your code more adaptable, try replacing the numbers you've directly used for sizes and positions with variables; that way, you can easily change those values without hunting through your code.", "For better readability, remember field (variable) names should begin with a lowercase letter \u2014 this is a common practice in coding that helps keep things clear.", "Consider exploring how you can write a function that both receives input values and sends a value back \u2013 this will help organize your code and make it more reusable. A simple example would be a function that adds two numbers."], "submission_comment": "This is a wonderful first submission! It's great you're already reaching out for feedback and thinking about how to improve your code. I\u2019m excited to see what you create as you continue to develop your Processing skills.", "gif_choice": "first_submission"}
LLM prompt not recorded for this submission. Re-process to capture it.
{
"ProcessingJavaBuildRule": "pass",
"AllFunctionsUsedRule": "pass",
"Marker-only rule 1": "fail",
"Marker-only rule 2": "fail",
"HasArrayIndexForLoop": "fail",
"Marker-only rule 3": "fail",
"Marker-only rule 4": "fail",
"Marker-only rule 5": "fail",
"Marker-only rule 6": "fail",
"Marker-only rule 7": "fail",
"Marker-only rule 8": "fail",
"ArrayUserInitRule": "fail",
"ArrayUserModifyRule": "fail",
"ArrayUserUseRule": "fail",
"ClassAttrDeclRule": "fail",
"ClassAttrInitRule": "fail",
"ClassAttrModifyRule": "fail",
"ClassAttrUseRule": "fail",
"ClassCallsDrawMethodRule": "fail",
"Marker-only rule 11": "fail",
"DecentralizedDrawStateRule": "pass",
"DecentralizedDrawingRule": "pass",
"DecentralizedEventHandlingRule": "fail",
"Marker-only rule 14": "pass",
"Marker-only rule 16": "fail",
"GlobalVarArithmeticRule": "pass",
"GlobalVarDeclRule": "pass",
"GlobalVarInitRule": "pass",
"GlobalVarUsageRule": "pass",
"HardcodedArrayRule": "pass",
"Has2DShapesRule": "pass",
"HasAbstractClassOrInterfaceRule": "pass",
"HasAccessModifierRule": "pass",
"AdvancedProcessingFunctionRule": "pass",
"HasArrayDeclRule": "fail",
"HasArrayListRule": "pass",
"HasBeginEndShapeRule": "pass",
"HasBezierRule": "pass",
"HasBitwiseOperatorRule": "pass",
"Marker-only rule 18": "fail",
"HasBreakContinueRule": "pass",
"HasCastRule": "pass",
"HasCitationCommentsRule": "pass",
"HasBacktickRule": "pass",
"HasClassUsageRule": "pass",
"HasClassWithConstructorRule": "fail",
"HasConditionsRule": "pass",
"Marker-only rule 19": "fail",
"Marker-only rule 20": "pass",
"HasDecorativeSectionCommentsRule": "pass",
"HasDrawRule": "pass",
"Marker-only rule 21": "fail",
"Marker-only rule 22": "pass",
"HasEventHandlerRule": "pass",
"HasFinalVariableRule": "pass",
"HasForEachLoopRule": "pass",
"HasGenericsRule": "pass",
"HasImportStatementRule": "pass",
"HasInheritanceRule": "pass",
"HasIntegerConstantsRule": "pass",
"HasLocalVarDeclRule": "pass",
"HasLocalVarUseRule": "pass",
"HasLoopRule": "pass",
"HasModuloOperatorRule": "fail",
"HasNoBooleanOperatorRule": "pass",
"HasNoElseStatementRule": "pass",
"HasNoiseRule": "pass",
"Marker-only rule 24": "fail",
"Marker-only rule 25": "fail",
"HasOverloadedBuiltinMethodRule": "pass",
"Marker-only rule 26": "fail",
"Marker-only rule 27": "fail",
"Marker-only rule 28": "fail",
"Marker-only rule 29": "fail",
"Marker-only rule 30": "fail",
"HasPlaceholderAuthorRule": "pass",
"HasPushPopMatrixRule": "pass",
"HasRandomDirectionPatternRule": "pass",
"Marker-only rule 31": "pass",
"HasRecursionRule": "pass",
"HasRotateRule": "pass",
"HasSettingsMethodRule": "pass",
"HasSetupRule": "pass",
"HasShapeMethodRule": "pass",
"HasStandardProcessingStructure": "pass",
"HasDoWhileRule": "pass",
"HasSwitchRule": "pass",
"HasTernaryOperatorRule": "pass",
"ThisKeywordUsageRule": "pass",
"HasTripleNestedClassRule": "pass",
"UsefulEventHandlerRule": "pass",
"HasUserCallInsideEHRule": "pass",
"HasUserDefinedClass": "fail",
"HasUserDefinedConstructor": "fail",
"Marker-only rule 32": "pass",
"ConstructorUsesParamRule": "fail",
"HasUserDefinedMethod": "pass",
"Marker-only rule 33": "fail",
"Marker-only rule 34": "pass",
"Marker-only rule 35": "pass",
"LocalVarArithmeticRule": "pass",
"LocalVarInitRule": "pass",
"LongMethodRule": "pass",
"LongParameterListRule": "pass",
"Marker-only rule 37": "pass",
"ManualLifecycleCallRule": "pass",
"MultipleInstantiationRule": "fail",
"Marker-only rule 38": "fail",
"OutOfScopeStateChangeRule": "pass",
"Marker-only rule 40": "fail",
"PixelHardcodeIgnoranceRule": "fail",
"ReservedMethodInClassRule": "pass",
"Marker-only rule 41": "fail",
"Marker-only rule 42": "fail",
"Marker-only rule 43": "pass",
"StatelessClassRule": "pass",
"UnusedVariableRule": "pass",
"UsingUserDefinedClass": "fail",
"ArrayLoopAggregateRule": "fail",
"ArrayLoopSelfUpdateRule": "fail",
"ArrayLoopUpdateRule": "fail",
"ArrayParameterLoopRule": "fail",
"HasLoopCounterUseRule": "pass",
"HasObjectMethodCallRule": "fail",
"HasObjectMethodCallWithArgRule": "fail",
"HasIfWithBooleanOperatorRule": "pass",
"HasPVectorRule": "pass",
"Marker-only rule 94": "pass",
"Marker-only rule 89": "pass",
"Marker-only rule 90": "pass",
"Marker-only rule 78": "pass",
"Marker-only rule 52": "pass",
"Marker-only rule 95": "pass",
"Marker-only rule 97": "pass",
"Marker-only rule 122": "pass",
"Marker-only rule 103": "pass",
"Marker-only rule 113": "pass",
"Marker-only rule 80": "pass",
"Marker-only rule 121": "pass",
"Marker-only rule 68": "pass",
"Marker-only rule 117": "pass",
"Marker-only rule 71": "pass",
"Marker-only rule 128": "pass",
"Marker-only rule 108": "pass",
"Marker-only rule 59": "pass",
"Marker-only rule 53": "pass",
"Marker-only rule 60": "pass",
"Marker-only rule 110": "pass",
"Marker-only rule 84": "pass",
"Marker-only rule 62": "pass",
"Marker-only rule 55": "pass",
"Marker-only rule 63": "pass",
"Marker-only rule 114": "pass",
"Marker-only rule 132": "pass",
"Marker-only rule 107": "pass",
"Marker-only rule 106": "pass",
"Marker-only rule 129": "pass",
"Marker-only rule 72": "pass",
"Marker-only rule 85": "pass",
"Marker-only rule 92": "pass",
"Marker-only rule 73": "pass",
"Marker-only rule 91": "pass",
"Marker-only rule 131": "pass",
"Marker-only rule 86": "pass",
"Marker-only rule 96": "pass",
"Marker-only rule 109": "pass",
"Marker-only rule 79": "pass",
"Marker-only rule 100": "pass",
"Marker-only rule 93": "pass",
"Marker-only rule 111": "pass",
"Marker-only rule 82": "pass",
"Marker-only rule 118": "pass",
"Marker-only rule 102": "pass",
"Marker-only rule 66": "pass",
"Marker-only rule 127": "pass",
"Marker-only rule 61": "pass",
"Marker-only rule 83": "pass",
"Marker-only rule 74": "pass",
"Marker-only rule 75": "pass",
"Marker-only rule 69": "pass",
"Marker-only rule 99": "pass",
"Marker-only rule 124": "pass",
"Marker-only rule 130": "pass",
"Marker-only rule 120": "pass",
"Marker-only rule 57": "pass",
"Marker-only rule 58": "pass",
"Marker-only rule 119": "pass",
"Marker-only rule 51": "pass",
"Marker-only rule 65": "pass",
"Marker-only rule 116": "pass",
"Marker-only rule 104": "pass",
"Marker-only rule 70": "pass",
"Marker-only rule 56": "pass",
"Marker-only rule 54": "pass",
"Marker-only rule 76": "pass",
"Marker-only rule 87": "pass",
"Marker-only rule 115": "pass",
"Marker-only rule 112": "pass",
"Marker-only rule 88": "pass",
"Marker-only rule 98": "pass",
"Marker-only rule 81": "pass",
"Marker-only rule 77": "pass",
"Marker-only rule 67": "pass",
"Marker-only rule 126": "pass",
"Marker-only rule 64": "pass",
"Marker-only rule 105": "pass",
"Marker-only rule 133": "pass",
"Marker-only rule 125": "pass",
"Marker-only rule 101": "pass",
"Marker-only rule 123": "pass",
"AvoidReassigningParameters": "pass",
"UnusedLocalVariable": "pass",
"ClassNamingConventions": "pass",
"ControlStatementBraces": "pass",
"Marker-only rule 15": "pass",
"FieldNamingConventions": "fail",
"FormalParameterNamingConventions": "pass",
"LocalVariableNamingConventions": "pass",
"LongVariable": "pass",
"MethodNamingConventions": "pass",
"Marker-only rule 44": "pass",
"ShortMethodName": "pass",
"Marker-only rule 49": "pass",
"AvoidDeeplyNestedIfStmts": "pass",
"CollapsibleIfStatements": "pass",
"Marker-only rule 12": "pass",
"Marker-only rule 13": "pass",
"ExcessiveParameterList": "pass",
"Marker-only rule 17": "pass",
"Marker-only rule 36": "pass",
"SimplifyBooleanExpressions": "pass",
"SimplifyBooleanReturns": "pass",
"SimplifyConditional": "pass",
"Marker-only rule 46": "pass",
"Marker-only rule 47": "pass",
"Marker-only rule 48": "pass",
"AssignmentInOperand": "pass",
"Marker-only rule 9": "pass",
"AvoidFieldNameMatchingTypeName": "pass",
"Marker-only rule 10": "fail",
"IdempotentOperations": "pass",
"MethodWithSameNameAsEnclosingClass": "pass",
"UnconditionalIfStatement": "pass",
"Marker-only rule 45": "pass",
"UnusedAssignment": "pass",
"Marker-only rule 39": "pass",
"ForLoopVariableCount": "pass",
"AvoidReassigningLoopVariables": "pass",
"Marker-only rule 50": "pass",
"CognitiveComplexity": "pass",
"DoesItBuildRule": "pass",
"ArrayIndexForLoopRule": "fail",
"GodClassRule": "pass",
"EventHandlerNoControlFlowRule": "pass",
"HasParamNonVoidCallableRule": "fail",
"HasReturnOrParamCallableRule": "fail",
"ArrayInitRule": "fail",
"ArrayModifyRule": "fail",
"ArrayUseRule": "fail",
"SingleFileSubmissionRule": "pass"
}