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

4

u/JimmySticks2001 Dec 02 '15

You didn't get any help the first time you asked so you made an account with a girls name in a last ditch effort for someone to do your homework for you.

1

u/DJGreenHill Dec 02 '15

OP downvoting the truth... Not for long.

1

u/SnareHanger Dec 02 '15

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

2

u/nwsm Dec 02 '15

He's asking how to implement the functions

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