Board Game Problem

Blitz3D Forums/Blitz3D Beginners Area/Board Game Problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Personally I would use an array for this

; set up array for 11 positions (zero based)
Dim Position(10,2)

; Data x,y,z for each position
Data 10,0,10
data 12,0,10
data 14,0,10
data 16,0,10
data 16,0,12
data 16,0,14
... etc

; Read in positions
for n=0 to 10
read position(n,0),position(n,1),position(n,2)
next

to place a player at position 4 for example
positionentity player,position(4,0),position(4,1),position(4,2)