theaigames/blockbattle-engine

语言: Java

git: https://github.com/theaigames/blockbattle-engine

TheAIGames.com上的AI Block Battle引擎,设置供本地使用。
The engine of AI Block Battle on TheAIGames.com, set up for local use.
README.md (中文)

blockbattle引擎

TheAIGames.com上AI Block Battle比赛的引擎

为了您的方便,我们的AI Block Battle引擎版本已经设置为供本地使用。请注意,这不包括可视化工具。

要编译(Windows,未经测试):

cd [project folder]
dir /b /s *.java>sources.txt
md classes
javac -d classes @sources.txt
del sources.txt

编译(Linux):

cd [project folder]
mkdir bin/
javac -d bin/ `find ./ -name '*.java' -regex '^[./A-Za-z0-9]*$'`

跑步:

cd [project folder]
java -cp bin com.theaigames.blockbattle.Blockbattle [your bot1] [your bot2] 2>err.txt 1>out.txt

[你的bot1]和[你的bot2]可以是运行机器人进程的任何命令。例如“java -cp / home / dev / starterbot / bin / main.BotStarter”或“node /home/user/bot/Bot.js”

错误将记录到err.txt,输出转储将记录到out.txt。您可以编辑AbstractGame类中的saveGame()方法,以输出像bot转储这样的额外内容。如果要从Eclipse快速运行引擎,请在Blockbattle类的main方法中将DEV_MODE = false更改为DEV_MODE = true,并在该方法中提供自己的bot。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

blockbattle-engine

The engine for the AI Block Battle competition at TheAIGames.com

This version of our AI Block Battle engine has been set up for local use, for your own convenience. Note that this does not include the visualizer.

To compile (Windows, untested):

cd [project folder]
dir /b /s *.java>sources.txt
md classes
javac -d classes @sources.txt
del sources.txt

To compile (Linux):

cd [project folder]
mkdir bin/
javac -d bin/ `find ./ -name '*.java' -regex '^[./A-Za-z0-9]*$'`

To run:

cd [project folder]
java -cp bin com.theaigames.blockbattle.Blockbattle [your bot1] [your bot2] 2>err.txt 1>out.txt

[your bot1] and [your bot2] could be any command for running a bot process. For instance "java -cp /home/dev/starterbot/bin/ main.BotStarter" or "node /home/user/bot/Bot.js"

Errors will be logged to err.txt, output dump will be logged to out.txt. You can edit the saveGame() method in the AbstractGame class to output extra stuff like your bot dumps. If you want to quickly run the engine from Eclipse, change DEV_MODE = false to DEV_MODE = true in the main method of the Blockbattle class and provide your own bot in that method as well.