Skip to content

nickhidding/connect-four

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect Four

Connect Four build with C++ using CMake

Screenshot

Image of Connect Four

Build on Ubuntu 18.04 LTS

Required packages:

  • g++
  • libgtk-3-dev
  • cmake
  • pkg-config
g++ *.cpp -o build -I`pkg-config --cflags --libs gtk+-3.0` && ./build
cmake . && make && ./Main

Run tests

cd test
cmake . && make && ./runTests

Generate unit test coverage report

Generate unit test coverage report after running the tests.

lcov --directory . --capture --output-file CMakeFiles/lcov.info
lcov -r CMakeFiles/lcov.info /usr/include/\* --output-file CMakeFiles/lcov.info
lcov -r CMakeFiles/lcov.info *googletest* --output-file CMakeFiles/lcov.info
genhtml --output-directory coverage-report CMakeFiles/lcov.info

Build on Windows 10 (incomplete)

  1. Install MSYS2
  2. Update with pacman -Syuu
  3. Install Git, nano, etc. pacman -S git nano cmake
  4. Install GTK3 pacman -S mingw-w64-x86_64-gtk3
  5. Clone Git repository & unpack
  6. Enter directory cd /c/path/to/unpacked/files/connect-four/
  7. Run Cmake cmake . -G "MSYS Makefiles"
  8. Build & Run make && ConnectFour.exe

About

Simple Connect Four game in C++ with GTK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published