cd build
cmake ..
make
In main directory:
./game mapa.txt status.txt rozkazy.txt [t]
- mapa.txt - file representing the map
- status.txt - includes information on the quantity of gold and the status of units
- rozkazy.txt - orders to units
- [t] - optional argument, time regime for program execution
- doxygen
In the root directory, run:
doxygen doxyfile.doxy
To view the documentation run:
firefox doc/html/index.html
The unit tests are located in the tests directory
- Google Test
sudo apt-get install libgtest-dev
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
sudo cp lib/*.a /usr/lib
From root directory:
cd tests
mkdir build
cd build
cmake ..
make
cd ..
./test_test