that idea whould be to draw random walls and obsticals that are not the same color as the backgorund or sank and then chech the color of the pixels on or close to the snake. if they are not the background color or the snake color then the snake has hit somting.
this could also be done with out whatdotcolor, you could keep track of all the pxiels in an array of boolean where true means the snake can not go there and false means it can. then u whould have to check this agested the curent postion of the sanke. this could also be used in a way to make rnadom walls by making an array witch has randomly amounts of pixels add to the top of the col and the end of it.
Computer Science CanadaHelp with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!