Skip to content
Advertisement

Get Numbers On Array Play Game with Numbers and Get Next Numbers On Array

I am trying to make a little game for my self. first i have an arrays.

After this i want to play flip coin game with this data after it runs 1,2 or 3 wins. After this code

JavaScript

After this come, how can move next array [30,40,50] and [50,20,30]. After all done, i need get 1. Game Player 1 won, 2. Game player 2 won ect.

How can i do it ?

Advertisement

Answer

You just need to wrap most of your code in a for loop:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement