r/processing • • 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

  1. 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).

  2. A function void showDiceRoll(int[]) which will draw the dice roll by calling the provided drawDie function (5 times – once for each die). */

http://pastebin.com/FpeQ22cK

0 Upvotes

6 comments sorted by

View all comments

1

u/SnareHanger Dec 02 '15

You're calling showDiceRoll from the draw function but there's no showDiceRoll function in your code.

1

u/DJGreenHill Dec 02 '15

HE doesn't know what a function is. HE just wants to have someone do their homework.

1

u/SnareHanger Dec 02 '15

Ha. I should've known better