AI vs AI?
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
Re: AI vs AI?
by LevelX » 14 Aug 2014, 06:47
The AI can and does already play against itself.LonelyCat wrote:Is it possible to make the AI play itself? If not how hard would this be to implement (I can probably do it depending on complexity).
For limited you can do it easily. Create a tournament with you and two (or more) AIs and leave the tournament in draft or construct phase. Than you can watch the AIs playing against each other.
For constructed it wouldn't be too complex, but need some fundamental work in start game handling of UI and server.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: AI vs AI?
by LonelyCat » 14 Aug 2014, 11:59
Yeah I had a look at it and hacked together the UI change, but I think actually starting the game is a problem. The Match list shows the matches as being between myself and computer (presumably because I created the lobby) and gets stuck on "Waiting to Start", probably because neither AI can press the start game button. The change I made otherwise still makes it playable Human vs AI - is there a developer area for discussions/questions (or javadoc for the project?).
- LonelyCat
- Posts: 3
- Joined: 11 Dec 2012, 10:38
- Has thanked: 0 time
- Been thanked: 0 time
Re: AI vs AI?
by LevelX » 14 Aug 2014, 13:07
Hey, thanks for your interest in the XMage project. Had a quick look of server logic and I didn't see any serious problem with adding that feature. Should be quite easy get it to work.LonelyCat wrote:Yeah I had a look at it and hacked together the UI change, but I think actually starting the game is a problem. The Match list shows the matches as being between myself and computer (presumably because I created the lobby) and gets stuck on "Waiting to Start", probably because neither AI can press the start game button. The change I made otherwise still makes it playable Human vs AI - is there a developer area for discussions/questions (or javadoc for the project?).
Human vs AI did work already so I'm not sure what you mean with making that playable.
You can do a pull request on github with your changes so I can take a look at it and if needed add the missing changes to table list and server logic.
Developer discussions can be done here in the Developers Talk subboard (I moved your thread to) or in github if it's related to an issues added there.
A special javadoc for the project does not exist.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: AI vs AI?
by LonelyCat » 14 Aug 2014, 14:17
I just meant as in the change I made to the new game UI didn't break that more than anything.
Am doing the pull request now - the changes are simply changing player1Panel in NewTableDialog to be a TablePlayerPanel instead (allowing selection of UI), plus the addition of some getters/setters in TablePlayerPanel. Its possible I've missed something really obvious though.
Sorry - I didn't see the developers talk forum, my bad
Edit: Just realised I downloaded the git without setting up username/password :/. Is there a way to add that once I've downloaded the repository? If not do my pull requests happen?
Edit 2: New to Git - I cloned the repo and didn't Fork it either - will try to fix it all and sort this out so I can do the request.
Am doing the pull request now - the changes are simply changing player1Panel in NewTableDialog to be a TablePlayerPanel instead (allowing selection of UI), plus the addition of some getters/setters in TablePlayerPanel. Its possible I've missed something really obvious though.
Sorry - I didn't see the developers talk forum, my bad

Edit: Just realised I downloaded the git without setting up username/password :/. Is there a way to add that once I've downloaded the repository? If not do my pull requests happen?
Edit 2: New to Git - I cloned the repo and didn't Fork it either - will try to fix it all and sort this out so I can do the request.
- LonelyCat
- Posts: 3
- Joined: 11 Dec 2012, 10:38
- Has thanked: 0 time
- Been thanked: 0 time
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest