❔ Can someone help me with my snake game?
Hi everyone reading this.
I’m pretty new to C#, so please go easy on me.
I have a snake-game (wpf), and the next level should have some kind of obstacle. So I made this for the next level. See picture please.
My problem now is that the apples that spawn with the Random Class might land on top of my obstacles. Is there anyway to make sure that they do not?
The other picture is the code for apples being spawned.
Would really appreciate help!
I’m pretty new to C#, so please go easy on me.
I have a snake-game (wpf), and the next level should have some kind of obstacle. So I made this for the next level. See picture please.
My problem now is that the apples that spawn with the Random Class might land on top of my obstacles. Is there anyway to make sure that they do not?
The other picture is the code for apples being spawned.
Would really appreciate help!

