carnt figure out the if statement to match the pictures

carnt figure out the if statement to match the pictures

Page 1 of 1

2 Replies - 934 Views - Last Post: 07 December 2008 - 08:31 AM Rate Topic: -----

#1 AZBOY2000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 06-December 08

carnt figure out the if statement to match the pictures

Post icon  Posted 07 December 2008 - 04:46 AM

hi
my problem is that im trying to build a one armed bandit using Java but i carnt figure out the If statement that matchs the pictures and then gives out a result:-

3 shapes of the same type win 1

my coding that i have already should be attached
any help with this problem would be great

thanks

Attached File(s)


Is This A Good Question/Topic? 0
  • +

Replies To: carnt figure out the if statement to match the pictures

#2 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2553
  • View blog
  • Posts: 10,637
  • Joined: 20-September 08

Re: carnt figure out the if statement to match the pictures

Posted 07 December 2008 - 07:56 AM

Your problem is that you don't have enough logical and structural support around the issue of your display. I recommend that you create a 'Drum' class which has an array or collection of 'Wheel' classes. Each Wheel class will have a current picture, representing what that wheel of the bandit happens to be displaying.

You should then find it easier to code
Was This Post Helpful? 0
  • +
  • -

#3 AZBOY2000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 06-December 08

Re: carnt figure out the if statement to match the pictures

Posted 07 December 2008 - 08:31 AM

View Postg00se, on 7 Dec, 2008 - 06:56 AM, said:

Your problem is that you don't have enough logical and structural support around the issue of your display. I recommend that you create a 'Drum' class which has an array or collection of 'Wheel' classes. Each Wheel class will have a current picture, representing what that wheel of the bandit happens to be displaying.

You should then find it easier to code



could you please give an example because im really new to all this
thanks alot
adam
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1