0

Please help me with this game, the level is increasing. 🙏🙏🙏 I want it to increase by 1 each time the ball is empty. Thanks

https://code.sololearn.com/WIMJep9NZP9E/?ref=app

19th Jul 2020, 10:42 AM
Abat
Abat - avatar
3 Antworten
+ 2
Remove your current line 96 to 98: if(array.length==1){ level++ }
19th Jul 2020, 10:46 AM
Gordon
Gordon - avatar
+ 2
I don't know much about js but I think in the condition mentioned by Gordon with the increasing level value you should also reset the array to its original. So that this condition will not executes.
19th Jul 2020, 10:53 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
I want to increase the level by 1 each time the ball is empty
19th Jul 2020, 10:48 AM
Abat
Abat - avatar