‘name’: ‘Problem Optional 2’,
‘points’: 0,
‘suites’: [
‘cases’: [
Copyright By PowCoder代写 加微信 powcoder
‘code’: r”””
>>> laser = LaserAnt()
>>> ant = HarvesterAnt(2)
>>> bee1 = Bee(2)
>>> bee2 = Bee(2)
>>> bee3 = Bee(2)
>>> bee4 = Bee(2)
>>> gamestate.places[“tunnel_0_0”].add_insect(laser)
>>> gamestate.places[“tunnel_0_0”].add_insect(bee4)
>>> gamestate.places[“tunnel_0_3”].add_insect(bee1)
>>> gamestate.places[“tunnel_0_3”].add_insect(bee2)
>>> gamestate.places[“tunnel_0_4”].add_insect(ant)
>>> gamestate.places[“tunnel_0_5″].add_insect(bee3)
>>> laser.action(gamestate)
>>> bee4.health
>>> bee1.health
>>> bee2.health
>>> ant.health
>>> bee3.health
‘hidden’: False,
‘locked’: False,
‘multiline’: False
‘scored’: True,
‘setup’: r”””
>>> from ants import *
>>> beehive, layout = Hive(AssaultPlan()), dry_layout
>>> dimensions = (1, 9)
>>> gamestate = GameState(None, beehive, ant_types(), layout, dimensions)
‘teardown’: ”,
‘type’: ‘doctest’
‘cases’: [
‘code’: r”””
>>> from ants import *
>>> LaserAnt.implemented
‘hidden’: False,
‘locked’: False,
‘multiline’: False
‘scored’: True,
‘setup’: ”,
‘teardown’: ”,
‘type’: ‘doctest’
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com