I'm working on a very basic snake game, and am in need of some help. In my loop I am and trying to repeatedly display my "pellet" in the Char Map array(can post full code if needed) the Map[y][x] are what I used in my get key sync to be able to use the arrow keys. That's why I tried them again. Originally I had Map[0][0] and that did not work, as well as Map[][]. What I want to achieve is that if the asterisk and the S are exactly equal IE in the same place then cout another randomly on the board. The error that I receive is left operend must be l-value, and also I am getting a red line under the asterisk(I'm using Visual Studios to compile)
I'm trying to use a sort of collision detection if the S which is my character comes in contact with the asterisk which is my snake pellet then move the pellet to some random place inside the character array sort of like he's eaten it