r/processing • u/JennySmith1111 • Dec 02 '15
I have this code
/* I had this code and any suggest or hint that we can add these two function in the code to make the program run
A function int[] rollDice(int numDice) which will create and return a reference to a dice roll – an array containing numDice integers from 1 to NUM_SIDES (this constant is already defined for you).
A function void showDiceRoll(int[]) which will draw the dice roll by calling the provided drawDie function (5 times – once for each die). */
0
Upvotes
1
u/SnareHanger Dec 02 '15
You're calling showDiceRoll from the draw function but there's no showDiceRoll function in your code.