Xyx wrote:friarsol wrote:Forge does have a match simulator, where you can pass command line arguments into forge.exe and run outside the UI altogether. Would this help for your idea?
Yes, that would be great! Would you have an example of such a command? Is there any documentation?
For the tournament I just need the match results. I don't need to see what actually goes on. If I then want to see how two decks handle each other in detail, I can always do it the UI way.
Here's the argument helper -
Syntax: forge.exe sim -d <deck1[.dck]> ... <deckX[.dck]> -n [N] -f [F]
sim - stands for simulation mode
deck1 (or deck2,...,
X) - constructed deck name or filename (has to be quoted when contains multiple words)
deck is treated as file if it ends with a dot followed by three numbers or letters
N - number of games, defaults to 1
F - format of games, defaults to constructed
Basically, what you do is open up a cmd window in the folder where you have Forge. And run it like this:
.\forge.exe sim -d deck1 deck2 -n 3
It's not really setup to work in "first to
X wins" matches right now, although since the AI doesn't sideboard running 3 games should give you what you're looking for. Additionally, it'll run in the background (not print to the command line) and outputs to the standard forge.log as it plays. It's fairly rudimentary, but each game ends with an announcement of the winner, and the current status of the match.
Match result: Ai(1)-Elves(Elves vs Goblins): 0 Ai(2)-Goblins(Elves vs Goblins): 3
Game 3 ended in 3215 ms. Ai(2)-Goblins(Elves vs Goblins) has won!
If you care about match status, you may need to manually trim the outcomes (the example above would need to be trimmed to 2-0; similarly, some 2-1 matches might have already ended at 2 games). Play around with it a bit, and lemme know if you have any feature requests. I can't make any promises, but it'd be cool to have a nice simulator for AI play.