Recommend
5 
 Thumb up
 Hide
17 Posts

Stephen Tavener» Forums » General Creator Forum

Subject: Ai Ai FAQ rss

Your Tags: Add tags
Popular Tags: AiAi [+] [View All]
Stephen Tavener
United Kingdom
London
England
flag msg tools
designer
The overtext below is true.
badge
The overtext above is false.
Avatar
mbmbmbmbmb
This first post is intended as a living FAQ for Ai Ai. I will update it with answers to questions as they occur.

Ai Ai links all in one place:
Suggestions
Announcements
Bug reports
Ai Ai Home Page

Q. Is there any quick way to rewind a finished game?
A. There is now (26/9/2015) - choose the "Review..." option from the Game menu (there is also a Review Position option in the File menu).

Q. Is there any way to turn the animations off?
A. There is now (26/9/2015) - look at the bottom of the Display menu - you can select an animation (including "None"), and also set how long the animation should last.
A. (18/2/2018) Clicking in the game window, or pressing any key will stop the animation and take you back to the game.

Q. I told the AI to play first, but it doesn't start thinking.
A. Click on the light bulb in the bottom right corner to start the AI thinking.

Q. How do I set the thinking time?
A. CTRL-T or from the AI Menu (Set Thinking Time(s).

Q. How do I pass?
When pass is an option, a button will appear in the bottom right corner - similarly with other options that can't easily be expressed by clicking on the board pieces (e.g. Swap).
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Luis Bolaños Mures
Spain
flag msg tools
designer
Avatar
mbmbmbmbmb
Is there any quick way to rewind a finished game?
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Stephen Tavener
United Kingdom
London
England
flag msg tools
designer
The overtext below is true.
badge
The overtext above is false.
Avatar
mbmbmbmbmb
No, but it wouldn't be hard. I'l add it to the wish list.
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Stephen Tavener
United Kingdom
London
England
flag msg tools
designer
The overtext below is true.
badge
The overtext above is false.
Avatar
mbmbmbmbmb
mrraow wrote:
No, but it wouldn't be hard. I'l add it to the wish list.

Done.
3 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Rich Marschner
msg tools
Sorry if this is not quite the right spot for this, but I was trying to write a game for Ai Ai by implementing the ExternalGame interface + mgl file, but when I try to run the game I get the error:


aiai.core.utility.FactoryException: Failed to create new joe.Intersection
at aiai.core.domain.GenericFactory.instance(GenericFactory.java:74)
at aiai.core.domain.GenericFactory.instance(GenericFactory.java:37)
at aiai.core.domain.DomainWrapper.<init>(DomainWrapper.java:117)
at aiai.Context.setDomain(Context.java:337)
at aiai.Main.main(Main.java:104)
Caused by: aiai.core.utility.FactoryException: joe.Intersection is not in the list of MglCompliant classes, or does not have an empty constructor.
at aiai.core.domain.GenericFactory.classForName(GenericFactory.java:138)
at aiai.core.domain.GenericFactory.instance(GenericFactory.java:64)


In the mgl file I have


// REQUIRED - Tells the loader which Ai Ai class will be created first
"class" : "joe.Intersection",


with the class Intersection implementing ExternalGame. I have also tried with the default "class" : "game.ExternalGameManager" but that produced a similar exception.

Any advice on what might be wrong? Thanks

2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Stephen Tavener
United Kingdom
London
England
flag msg tools
designer
The overtext below is true.
badge
The overtext above is false.
Avatar
mbmbmbmbmb
Oops. I moved the code, and didn't update the .mgl

"class" : "external.ExternalGameManager",

"extensionFolder" : this should point to the location of your class file
"extensionClass" : this should be your game class
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Stephen Tavener
United Kingdom
London
England
flag msg tools
designer
The overtext below is true.
badge
The overtext above is false.
Avatar
mbmbmbmbmb
ExternalGame interface now guaranteed working - there is an example game in the dev folder.
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Benji York
United States
Shelbyville
Tennessee
flag msg tools
Q. How do I pass on my turn?
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Stephen Tavener
United Kingdom
London
England
flag msg tools
designer
The overtext below is true.
badge
The overtext above is false.
Avatar
mbmbmbmbmb
benjiyork wrote:
Q. How do I pass on my turn?

When pass is an option, a button will appear in the bottom right corner - similarly with other options that can't easily be expressed by clicking on the board pieces(e.g. Swap).
1 
 Thumb up
1.00
 tip
 Hide
  • [+] Dice rolls
Rex Moore
United States
Woodbridge
Virginia
flag msg tools
Avatar
mbmbmbmbmb
Can you explain more about how ELO works? After playing several games of Blooms it said:

Quote:
Human as Yellow/Red
Win %: 66 (est. ELO 1588)

Hybrid(GUCT/αβ/Opening and endgame libraries) as Black/Grey
Win %: 0 (est. ELO 850)


But upon closing and re-opening, it says:

Quote:
Human as Yellow/Red
Win %: 40 (est. ELO 1369)

Hybrid(GUCT/αβ/Opening and endgame libraries) as Black/Grey
Win %: 50 (est. ELO 1450)


And if you could explain the win % differences as well... thanks!
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Stephen Tavener
United Kingdom
London
England
flag msg tools
designer
The overtext below is true.
badge
The overtext above is false.
Avatar
mbmbmbmbmb
orangeblood wrote:
Can you explain more about how ELO works?

modest sounds like I have some bugs to figure out!

It should work much like a chess match. If you win against a specific AI (includes time), your ELO should rise, and its should fall,and vice versa. The exact amount will vary depending on the difference between your current ratings... but clearly there's a problem somewhere. I'll take a look.

Same with the win% - that's meant to be the total % of your wins in this game, across all AIs.
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Marco Brenco
Italy
flag msg tools
Hello Stephen

I had trouble making my first game work with Ai Ai. The error was that the ExternalGameManager wasn't able to access some member of my class.
Finally I've found I had to make the constructors explicitly public.

But this was not the case in the sample NoughtAndCrosses. I suggest to update that example or other people may incur in the same trouble.

Thanks!
Marco
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Stephen Tavener
United Kingdom
London
England
flag msg tools
designer
The overtext below is true.
badge
The overtext above is false.
Avatar
mbmbmbmbmb
Thanks! I have just released a new version of Ai Ai. In the external folder, there is a reference implementation of Breakthrough which includes:
Parameter passing from the .mgl file
File parameters
Heuristics
Zobrist hashing
... and should be very valuable to people using the external interface.
There are also bugfixes for a few External game issues.

mbjoker wrote:
Hello Stephen

I had trouble making my first game work with Ai Ai. The error was that the ExternalGameManager wasn't able to access some member of my class.
Finally I've found I had to make the constructors explicitly public.

But this was not the case in the sample NoughtAndCrosses. I suggest to update that example or other people may incur in the same trouble.

Thanks!
Marco
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Marco Brenco
Italy
flag msg tools
Thanks Stefen
I've just downloaded but there is no Breakthrough under the dev folder, everything seems like the previous version...
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Stephen Tavener
United Kingdom
London
England
flag msg tools
designer
The overtext below is true.
badge
The overtext above is false.
Avatar
mbmbmbmbmb
mbjoker wrote:
Thanks Stefen
I've just downloaded but there is no Breakthrough under the dev folder, everything seems like the previous version...

I've just been through the download process and verified that the files are present, so the problem seems to be at your end.

Check that you have the correct download location:
http://mrraow.com/index.php/aiai-home/aiai/

Make sure you aren't somehow still using the old version of Ai Ai.
Make sure you unzip the new files.
You'll find the mgl file in dev, the class files in dev/bin/external/ and the java files in dev/src/external/.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Marco Brenco
Italy
flag msg tools
mrraow wrote:
mbjoker wrote:
Thanks Stefen
I've just downloaded but there is no Breakthrough under the dev folder, everything seems like the previous version...

I've just been through the download process and verified that the files are present, so the problem seems to be at your end.

Check that you have the correct download location:
http://mrraow.com/index.php/aiai-home/aiai/

Make sure you aren't somehow still using the old version of Ai Ai.
Make sure you unzip the new files.
You'll find the mgl file in dev, the class files in dev/bin/external/ and the java files in dev/src/external/.


Got it! Yes it must have been my mistake.
I have a question though. Are there different version of MCTS? If so how can I drive which one is used, with externals? My game is always played wirh "Hybrid(GUCT/αβ/Opening and endgame libraries)"
Thanks
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Stephen Tavener
United Kingdom
London
England
flag msg tools
designer
The overtext below is true.
badge
The overtext above is false.
Avatar
mbmbmbmbmb
mbjoker wrote:
I have a question though. Are there different version of MCTS? If so how can I drive which one is used, with externals? My game is always played wirh "Hybrid(GUCT/αβ/Opening and endgame libraries)"
Thanks

Go to Select Role in the settings menu, and choose Game Designer or below.
Restart Ai Ai

You will now be able to change the AI and will also have access to lots of analysis tools. One warning; a lot of the extra tools are experimental, or were written so I could solve a specific problem; so they may not work as you expect them to... or indeed, at all!
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.