Question
How do I compare 3 variable images in the attached slot machine code and then if all 3 images match show an image, but if
How do I compare 3 variable images in the attached slot machine code and then if all 3 images match show an image, but if they do not match then show a different image. Can not use javascript. It must be php or html. The pictures are .png files as stated in the existing code
Welcome to Mohawk's Slot Machine
This a skeleton from which to start your work.
// random number to represent which of the 7 fruits we will show $fruit_num = random_int(1,7);
// spit an image tag echo ''; ?>
// random number to represent which of the 7 fruits we will show $fruit_num = random_int(1,7);
// spit an image tag echo ''; ?>
// random number to represent which of the 7 fruits we will show $fruit_num = random_int(1,7);
// spit an image tag echo ''; ?>
Start New Game!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started