import json
import sys
from pathlib import Path

repo = Path.home() / 'TibiaPilotNG'
sys.path.insert(0, str(repo))

from src.gameplay.core.waypoint import generateFloorWalkpoints

start = [32394, 32234, 7]
goal = [32390, 32215, 7]
monsters = [[32393, 32234, 7], [32390, 32229, 7]]
print(json.dumps({
    'withoutMonsters': generateFloorWalkpoints(start, goal)[:20],
    'withMonsters': generateFloorWalkpoints(
        start, goal, nonWalkableCoordinates=monsters,
    )[:20],
}))
