This is the codebase for the workshop "C++ dal '90 a oggi"
If you use Visual Studio 2013, just clone the repo and build the solution here: https://github.com/italiancpp/yahtzee/tree/master/VS. Then run yahtzee_test.exe. One test should be RED.
Done? Ok, keep calm and wait for CDays15! :)
- CMake for every O.S.
- OSX - Linux: at least gcc 4.8
- Win32: [Suggested at least VS 2013]
Open a console and go where you downloaded the repo, create a directory called linux-build, win32-build or osx-build
$ mkdir linux-build
go inside:
$ cd linux-build
and type
$ cmake ..
The cmake create a project compatible for you O.S. If you are on linux/osx now you can run
$ make
If you are on windows with VS 2013 you can run
$ msbuild Yahtzee.sln
After that you have compiled the program and the test.
On linux you can launch the program with
$ ./Yahtzee
or run the test with
$ ./yahtzee_test
If you are on windows you can run the program with:
$ Debug\Yahtzee.exe
or run the test with
$ Debug\yahtzee_test.exe
One test should be red.