Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Three_Of_A_Kind(int dice_value[])
- {
- for(int i = 0; i < dice_value.length; i++)
- {
- int x = 0;
- int z = 0;
- for(int value:dice_value)
- {
- x++;
- if ( x == value)
- z++;
- if(z == 3)
- allow_three = 1; //static, giving permission to use this method
- }
- }
- }
Add Comment
Please, Sign In to add comment