Sha256: d449b8d8a3cf45dee2f5686ae1be251a94d0f68be1dc8a0647f286ac23370006

Contents?: true

Size: 386 Bytes

Versions: 3

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: "Goldenaura512AIE" # Or any of the downloaded map names
).run

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sc2ai-0.0.4 lib/templates/new/run_example_match.rb.tt
sc2ai-0.0.3 lib/templates/new/run_example_match.rb.tt
sc2ai-0.0.2 lib/templates/new/run_example_match.rb.tt