pick character from console

Dec 14, 2012 at 5:35pm
hi,
i am using
gotoxy()
function in console to print a
'*'
now i want to check if there is a
'*'
in some "console coordinate" !! is there any way
help please
Dec 14, 2012 at 5:53pm
Dec 14, 2012 at 6:46pm
Why do you want to check if there is a '*' at some coordinate.
Dec 15, 2012 at 8:19am
i am making a snake game of my own way ,, so
i want to check on four sides of tail coordinate of snake (up,down,right,left)
if there is a '*' if there is then i have to move tail coordinate to that coordinate
Jan 8, 2013 at 10:43am
Just use an 2D array to store the coordinates of all parts of snake, or just use a 80x25 array of the screen and keep updating it as you print or remove something from the screen. You can just see this http://www.cplusplus.com/forum/beginner/89565/
Last edited on Jan 9, 2013 at 10:24am
Topic archived. No new replies allowed.