def web_main(dc, pn, gui=None, spr=None, plan=SIMPLE, solver=solver): #from kwarwp_factory import Sprite gui = GUI(dc['panel'], dc['data'], gui) _builder = Builder() place = _builder.build(pn, gui, _builder.build_inventory(FS=Sprite), plan, solver) dc['for'].addEventListener("click", place.actor.go_forward) dc['lef'].addEventListener("click", place.actor.go_left) dc['rig'].addEventListener("click", place.actor.go_right) dc['aft'].addEventListener("click", place.actor.go_backward) dc['tri'].addEventListener("click", place.actor.go_push) dc['exi'].addEventListener("click", place.actor.go_pull) dc['cir'].addEventListener("click", place.actor.go_take) dc['squ'].addEventListener("click", place.actor.go_give) dc['start'].addEventListener("click", place.actor.go_step) return place
def main(pn, gui, spr=None, plan=SIMPLE, solver=solver): _builder = Builder() return _builder.build(pn, gui, _builder.build_inventory(FS=spr), plan, solver)