示例#1
0
文件: main.py 项目: chyt/CS343-Hw2
def start_my_planner_2_disk():
    """ start the tower demo """
    getMod().num_disks = 2
    OpenNero.disable_ai()
    getMod().stop_agent()
    env = TowerEnvironment()
    env.initialize_blocks()
    getMod().set_environment(env)
    getMod().agent_id = common.addObject("data/shapes/character/MyPlanningRobot2.xml", OpenNero.Vector3f(TowerofHanoi.constants.GRID_DX, TowerofHanoi.constants.GRID_DY, 2), type=TowerofHanoi.constants.AGENT_MASK, scale=OpenNero.Vector3f(3,3,3))
    OpenNero.enable_ai()
示例#2
0
文件: main.py 项目: bradyz/cs343
def start_nlp_extended(): #Natural Language Processing
    """ start the tower demo """
    getMod().num_disks = 3
    OpenNero.disable_ai()
    getMod().stop_agent()
    env = TowerEnvironment()
    env.initialize_blocks()
    getMod().set_environment(env)
    getMod().agent_id = common.addObject("data/shapes/character/MyNLPRobot.xml", OpenNero.Vector3f(TowerofHanoi.constants.GRID_DX, TowerofHanoi.constants.GRID_DY, 2), type=TowerofHanoi.constants.AGENT_MASK, scale=OpenNero.Vector3f(3,3,3))
    OpenNero.enable_ai()
示例#3
0
def start_my_planner_3_disk():
    """ start the tower demo """
    getMod().num_disks = 3
    OpenNero.disable_ai()
    getMod().stop_agent()
    env = TowerEnvironment()
    env.initialize_blocks()
    getMod().set_environment(env)
    getMod().agent_id = common.addObject(
        "data/shapes/character/MyPlanningRobot3.xml",
        OpenNero.Vector3f(TowerofHanoi.constants.GRID_DX,
                          TowerofHanoi.constants.GRID_DY, 2),
        type=TowerofHanoi.constants.AGENT_MASK,
        scale=OpenNero.Vector3f(3, 3, 3))
    OpenNero.enable_ai()
示例#4
0
文件: main.py 项目: Benjamin28/ai-hw4
def start_nlp_extended():  #Natural Language Processing
    """ start the tower demo """
    getMod().num_disks = 3
    OpenNero.disable_ai()
    getMod().stop_agent()
    env = TowerEnvironment()
    env.initialize_blocks()
    getMod().set_environment(env)
    getMod().agent_id = common.addObject(
        "data/shapes/character/MyNLPRobot.xml",
        OpenNero.Vector3f(TowerofHanoi.constants.GRID_DX,
                          TowerofHanoi.constants.GRID_DY, 2),
        type=TowerofHanoi.constants.AGENT_MASK,
        scale=OpenNero.Vector3f(3, 3, 3))
    OpenNero.enable_ai()