Hi Everyone
I found this web site through instructables.com which explained about wavefront propagation.
I am trying to code a robot which will navigate through an 6 x 6 squares. I am using the code from
http://www.societyofrobots.com/robotforum/index.php?topic=5831.0 and converting it into picaxe basic.
I can understand all of it except one section:
Dim map(,) As Integer = {{0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}, {255, 255, 255, 255, 0, 0}, {0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}}
Could you please help me and explain if 'map' is an integer, or is it (,) that is the integer? or BOTH ? ! ?
I am used to picaxe basic and I would define map as symbol map = 20 or whatever. Also, are all the numbers in brackets a horizontal representation of the map itself ? and if so why are the middle numbers 255 ? (a wall?)
I am guessing that each number is a memory location on the micro-controller? if someone could clear this up for me it would be a great help