Help! How to start my own AI

https://github.com/bwapi/bwapi
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Moonlove
Posts: 2
Joined: Wed Mar 14, 2012 3:16 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Help! How to start my own AI

Postby Moonlove » Wed Mar 14, 2012 3:23 pm

I am a freshman to BWAPI. Now, I want to start to develop my own AI, but I found I can't "see" anything.
For example, I want to build a Barrack besides my Command Center, but I can't see the map, so how I code this command?
Does someone can told me something elementary things or good tutorial about BWAPI? I think I got lost.
Thanks.
krasi0
Posts: 254
Joined: Thu Dec 18, 2008 12:42 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby krasi0 » Thu Mar 15, 2012 7:08 am

User avatar
Taranok
Posts: 256
Joined: Tue Sep 07, 2010 9:41 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Taranok » Fri Mar 16, 2012 7:14 am

Just wondering, does BWSAL 0.9.12 work with BWAPI 3.7.2?
Moonlove
Posts: 2
Joined: Wed Mar 14, 2012 3:16 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Moonlove » Wed Apr 18, 2012 9:13 am

Thanks for your replied. I'm sorry I can't enter recently and reply it so late.
I will see the example and try to solve my problem. Like another Senior, BWSAL is still compatible with BWAPI 3.7.2 or not? I worry this very much...
Heinermann
Posts: 362
Joined: Thu Apr 26, 2007 12:42 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Heinermann » Sun May 06, 2012 3:16 pm

Willem.Esterhuizen
Posts: 1
Joined: Tue Nov 06, 2012 2:55 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Willem.Esterhuizen » Mon Nov 12, 2012 12:30 pm

krasi0
Posts: 254
Joined: Thu Dec 18, 2008 12:42 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby krasi0 » Tue Nov 13, 2012 9:19 am

you can't. A BWAPI::Position object is immutable. you should always create new position objects with the wanted coordinates
Heinermann
Posts: 362
Joined: Thu Apr 26, 2007 12:42 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Heinermann » Sat Nov 17, 2012 5:05 am

User avatar
c3lm4ta
Posts: 8
Joined: Tue Dec 04, 2012 7:47 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby c3lm4ta » Wed Dec 05, 2012 3:18 am

krasi0
Posts: 254
Joined: Thu Dec 18, 2008 12:42 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby krasi0 » Wed Dec 05, 2012 9:48 am


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “BWAPI (wrappers in other languages / questions and announcements related to BWAPI itself)”

Who is online

Users browsing this forum: No registered users and 1 guest