Jump to content

Giving values to images

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
dman4real

dman4real

    Newbie

  • Members
  • PipPip
  • 10 posts
Hello guys, i am trying to build a slot machine, i need to give values to images when they are randomly matched.

eg 2 of a kind go.jpg go.jpg home.jpg Reward 10 points
3 of a kind go.jpg go.jpg go.jpg Reward 40 points

and also other matches any ideas??
Thanks

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Are you trying to decide what values to assign or determine how to detect the number of matches?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
dman4real

dman4real

    Newbie

  • Members
  • PipPip
  • 10 posts
yes exactly i am trying to determine how to detect the number of matches when the images have been displayed

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I would check if the src values of all three are equal, then check if 2 of the three are equal (in all three combinations).
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog