As the updateSnake() is called infinitely, after the snake coordinates exceed dimensions of the canvas… it disappears and does not give an error? why?
Draw Snake infininte
@akhilkhubchandani
You can write your own logic for that
We want to equip you with the entire base of the project and then see what you can make of it after that
Try to implement your own logic for out of bounds and if you need guidance I’ll be happy to help you
Okay i will try . I just wanted to know why it does not give an error even though the coordinates are out of the frame
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.