Sha256: ac195cdf8c69c8f393f297f9460b2ca8c28d4aa43b0a23762e4002597e88667b

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

# Use the ladder's boot.rb file and configure there
require "./boot.rb"

# Or simply, create by hand
#my_bot = MyBot.new(name: "Botname", race: Api::Race::Random)

# Start a match
Sc2::Match.new(
  players: [
    $bot,
    Sc2::Player::Computer.new(race: Api::Race::Random, difficulty: Api::Difficulty::VeryEasy)
  ],
  map: "GoldenAura513AIE" # Or any of the downloaded map names
).run

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sc2ai-0.2.0 lib/templates/new/run_example_match.rb.tt
sc2ai-0.1.0 lib/templates/new/run_example_match.rb.tt
sc2ai-0.0.8 lib/templates/new/run_example_match.rb.tt
sc2ai-0.0.7 lib/templates/new/run_example_match.rb.tt