Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Java 

Dice Roller

You need to do it something like this:
PHP Code

<?php 
public static void paintDice(int num) {
   if (
num == 1) {
      
// code to paint the "1" dice here
   
} else if (num == 2) {
      
// code to paint the "2" dice here
   
} // etc.
} 

And then in your main method you would do paintDice(num1) and paintDice(num2).


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by ICUPApr 3, 2020 08:21 AM 3 186 Apr 3, 2020 08:21 AM
Last Post: lockhead
[Python] by Mr.RichieApr 25, 2018 09:56 PM 5 155 Apr 25, 2018 09:56 PM
Last Post: cleptom
[Python] by Will PattersonOct 6, 2017 11:02 AM 9 290 Oct 6, 2017 11:02 AM
Last Post: koolkid