+ 1
why function checkend doesnt work
https://code.sololearn.com/WK7xZ3cy9bBv/?ref=app pls help me 🙏🏻
6 odpowiedzi
+ 3
The function checkend does work but it invokes itself once. You may want to put that logic in the loop.
+ 3
In SoloLearn mobile app, you have to wrap your code in window.onload event handler. Full explanation avaialable here
https://www.sololearn.com/post/90825/?ref=app
+ 3
Luise Chen
Okay, you want checkend to be invoked once.
With you code as is, checkend is invoked right after loop is initially invoked.
https://code.sololearn.com/W4cJvqJ4Pb8w
When do you want/ expect checkend to be invoked?
+ 1
ODLNT I want to check if player complete the game(all balls dispear) and send a message.
Tks for looking👏🏻, so i see checkend is working but no as i thought 🤡it looks like my condition part go wrong.
0
@Ipang have added onload event and checkend doesn't work still, I'll try later.
Thanks for answer me
0
@ODLNT I want it to be called just for once 🤧