+ 1
Link not working...?
In the following code I have a link to my snake game, which runs just fine by itself. Going through the link however, when the game is run, it throws âsyntax errorâ without any further info. Does anyone see the issue? Hereâs the code with the link: https://code.sololearn.com/W7K4pDKPIhrF/?ref=app This is the snake game: https://code.sololearn.com/W1mgu6mLP2E5/?ref=app
14 Answers
+ 4
Oceanlight yes, I played up to score 15 without any problems. How does the error occur in the code ? How can I reproduce the error ?
+ 4
Oceanlight I ran it on the app đđ yet had no problems!
+ 3
Weird, it doesn't show any syntax error on my side. Have you fixed the code ?
+ 3
Oceanlight weird, I tried it more than 5 times and wasn't able to produce an error
+ 2
I dont think the error is from the code.
I think Sololearn just doesnât work well when it comes to linking a code. Not exactly why; but most of the time it throws a syntax error when I try to link to a different code too.
+ 1
Ginfio thanks, I suspected that
Maybe thereâs still a way make it work though... Iâll let you know if I find itđŹđ
+ 1
I don't see any error in the code cus is working in my app.
+ 1
try this: https://snakethegame.glitch.me
0
Aymane Boukrouh [INACTIVE] nope...đ€š
Itâs still throwing errors over here
Is the snake game running just fine for you?
0
Aymane Boukrouh [INACTIVE] I really donât know how it occurs...
I click the link; it opens a split screen (as if opened in the browser instead of the app) with the code on the left and the output on the right (which is blank); and the console pops up with âsyntax errorâ
I also canât hide the console to rerun the game (the console is blocking the run button)
This might just be an error with sololearnđ
0
Aymane Boukrouh [INACTIVE] Ginfio
so I just ran it in my browser (instead of the app) and it worked just fine...
It only seems to malfunction in the app
0
Simply Studios your game works AND is shows âsyntax errorâ; mine dosenât work at all đ§
Iâm trying to use my own snake game though...
0
Perhaps this is a bug with a specific version of sololearn
0
Oceanlight look at the js source code