Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I cant really put code here as it is pretty big, but just go to this link and view source, and also try it out as the game does not work. Either spam the card and get to the freezing part quick, or you can actually take it slowly. The failed Game Link. Im not very sure as to what is freezing it, as i cant even use the console. I tried in chrome and firefox.
Posted
Comments
Sergey Alexandrovich Kryukov 26-Jul-14 1:31am    
The link shows to the same page. You probably need to try to simplify the code to obtain some minimal code sample manifesting the problem.
—SA
G4mm4R4y 26-Jul-14 12:15pm    
I dunno why the link does that but the link is allappsuite.tk/war/index.html

1 solution

Change below function in your script

function randomInt(min,max)
{
return Math.floor(Math.random()*(max-min+1)+min);
}


into

function randomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
 
Share this answer
 
Comments
G4mm4R4y 26-Jul-14 12:14pm    
Ill try that now
G4mm4R4y 26-Jul-14 12:17pm    
Still freezes, ill reupload it now, with your code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900