Question by
stu-297895 · Sep 24, 2017 at 12:04 PM ·
arraypicturerng
Shuffling through images in an array after something has been landed on?
I'm trying to do a board game, which involves cards. A bit like Monopoly. When a player lands on a space, they get a card. These cards are going to be "shuffled" so they are at random. How would one do this? I preferably want it to be in the Javascript code. I did something like this in pure JS, but it didn't work.
I want it to be in 3 forms (for testing it out)
1) when a button is clicked, images get selected at random, and then wont be picked again until all have been picked 2) "" but with a code that will allow an animation to play 3) the proper code, where a player lands on a designated space, and it works, with the animation
I'm pretty much brand new to code, so go easy xD
Comment