type Cell = object
x,y:int
let Size = 2345
#...
for i in countup(1,Map.high,2):
for j in countup(1, Map[i].high,2):
var direction = random.sample( [if j+1 > 0 and j+1 < Size:
Cell(x:j+1, y:i) else: NaN, if i+1 > 0 and i+1 < Size: Cell(x:j, y:i+1) else:
NaN] )
Run
/home/max/project/maze_generator/maze.nim(30, 91) Error: type mismatch: got
<float64> but expected 'Cell = object'
Runwhy do i get this error? What is wrong? Help me pls
