Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
A simple Square Map implementation

src/s/n/snake-challenge-HEAD/examples/edward32tnt/astarsnake.py   snake-challenge(Download)
import json, time, random, sys
import urllib, httplib
from AStar import AStar, SQ_MapHandler, SQ_Location
 
LEFT, UP, RIGHT, DOWN = range(4)
                    mapdata.append(1)
 
            astar = AStar(SQ_MapHandler(mapdata, self.map['size'][0], self.map['size'][1]))
            start = SQ_Location(startpoint[0], startpoint[1])
            end = SQ_Location(endpoint[0], endpoint[1])