expand.now() method problem
See original GitHub issueIt throws an error when there is a lair ready(tested the same code that threw an error but without the lair upgrade and it worked) here is the traceback
Traceback (most recent call last):
File "C:\Users\Pichau\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sc2\main.py", line 60, in _play_game_ai
await ai.on_step(iteration)
File "C:/Users/Pichau/PycharmProjects/sc2 bot/Zerg_roach_hydra.py", line 32, in on_step
await self.build_hatchery()
File "C:/Users/Pichau/PycharmProjects/sc2 bot/Zerg_roach_hydra.py", line 82, in build_hatchery
await self.expand_now()
File "C:\Users\Pichau\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sc2\bot_ai.py", line 100, in expand_now
placement_step=1)
File "C:\Users\Pichau\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sc2\bot_ai.py", line 307, in build
p = await self.find_placement(building, near.rounded, max_distance, random_alternative, placement_step)
File "C:\Users\Pichau\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sc2\bot_ai.py", line 243, in find_placement
assert self.can_afford(building)
AssertionError
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How to solve the issue that arise while using performance.now ...
Generally, the best way to check the performance of the functions in JavaScript is the built-in performance.now() method.
Read more >Expand terms, multiply polynomials with Step-by ... - QuickMath
Expand a term or a factor. Multiply polynomials, binomials, trinominals and monomials with our free step-by-step math calculator.
Read more >(x+2)^2 expand and simplify using FOIL method - YouTube
Learn the steps on how to expand (x + 2)²The technique used in this tutorial is known as FOIL and is a common...
Read more >$Expand does not work when i get one item - Stack Overflow
EntityFramework's Find method does not return an IQueryable<TEntity> but rather TEntity itself. It is therefore logical that OData can no ...
Read more >Partial Fraction Expansion (or Decomposition)
The calculation described above can, in practice, be very easily completed by hand by using the "cover-up" method. Example: Distinct Real Roots; the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same happens when you play Terran and have an ORBITAL COMMAND
It should be fixed now and on master branch. If you still encounter issues, feel free to reopen this issue.