{"size": 718, "ext": "js", "max_stars_repo_path": "mod/sce/test/land-01.js", "max_stars_repo_name": "invider/mech-force-command.mod", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "mod/sce/test/land-01.js", "max_issues_repo_name": "invider/mech-force-command.mod", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "mod/sce/test/land-01.js", "max_forks_repo_name": "invider/mech-force-command.mod", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.512195122, "max_line_length": 54, "alphanum_fraction": 0.5181058496}

const name = 'Shooting Range'

const opt = {
    w: 8,
    h: 8,
    base: '.',
}

function genTerrain(world, opt) {
    lib.ken.generateSquare(world, opt)
}

function genSquads(world, opt) {
    const leader1 = world.spawn(dna.bot.Mech, {
        id:   1,
        team: 1,
        symbol: 'L',
        x: 2,
        y: 2,
    })
    lab.mode.port1.focusOn(leader1)

    const leader2 = world.spawn(dna.bot.Mech, {
        id:   2,
        team: 2,
        symbol: 'R',
        x: 6,
        y: 2,
    })
    lab.mode.port2.focusOn(leader2)
}

function setup() {
    _.sce.test.util.setTitle(name)

    job.mission.define('kill', (source, context) => {
        if (env.config.test === true) trap('nextTest')
    })
}
