gpad / yahtzee

Refactoring C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yahtzee

This is the codebase for the workshop "C++ dal '90 a oggi"

For Visual Studio users

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! :)

Prerequisites

  • CMake for every O.S.
  • OSX - Linux: at least gcc 4.8
  • Win32: [Suggested at least VS 2013]

How to build it

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.

About

Refactoring C++


Languages

Language:C++ 83.4%Language:Shell 8.8%Language:Python 4.9%Language:Makefile 1.9%Language:CMake 0.5%Language:M4 0.5%Language:C 0.1%