Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

JimVliet/VierOpEnRijBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fourinarow-engine

The engine for the Four In A row competition at TheAIGames.com

This version of our Four In A Row engine has been set up for local use, for your own convenience. Note that this does not include the visualizer.

To compile (Windows):

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.fourinarow.FourInARow [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 FourInARow class and provide your own bot in that method as well.

About

A bot for the for in a row game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages