If you have any trouble installing Orego, please let us know!
downloading and compiling the source code (if you want to work on the code)
downloading the precompiled .jar file (if you only want to play against Orego)
Otherwise, you can download the source code directly: go to https://github.com/Orego/Orego and click on the ZIP button to download a .zip file with the entire Orego codebase. Unzip the file into a directory of your choice.
If you are using an integrated development environment like Eclipse or NetBeans, you can let it compile the code for you. Otherwise, you can do so on the command line; within the directory where the code is located, issue the following commands.
On Linux or Mac OS X:
find . -name "*.java" | grep -v Test > sources.txt
javac @sources.txt
On Windows:
dir /s /B *.java | findstr /v Test > sources.txt
javac @sources.txt
Now the program is compiled and you can run it. See the Running Orego section below for more information.
In Linux or Mac OS X, execute the following commands at the command line:
mkdir orego
cd orego
tar -xf /path/to/jar/file/<filename>.jar
In Windows:
Change the file's extension from .jar to .zip.
Right click on the .zip file > Open With > Windows Explorer.
Extract All Files to a folder of your choice.
Running Orego
java -ea -Xmx1024M edu.lclark.orego.ui.Orego
(If you compiled from source, make sure you are in the src directory when you execute this command.)
showboard
=
...................
...................
...................
...................
...................
...................
...................
...................
...................
...................
...................
...................
...................
...................
...................
...................
...................
...................
...................
play black d10
=
showboard
=
...................
...................
...................
...................
...................
...................
...................
...................
...................
...#...............
...................
...................
...................
...................
...................
...................
...................
...................
...................
genmove white
= O17
showboard
=
...................
...................
.............O.....
...................
...................
...................
...................
...................
...................
...#...............
...................
...................
...................
...................
...................
...................
...................
...................
...................
quit
=
To run Orego with a graphical interface, you can attach it to GoGui:
Install GoGui from http://gogui.sourceforge.net/.
Run GoGui and click on Program > New Program.
In the Command field type the same command you use to run Orego above. If you want to run Orego with a boardsize of 9x9 (rather than the default 19x19), add boardsize=9 to the end of the line.
In the Working directory field give the path to the directory where you installed Orego.
Click OK twice.