{"id":25420058,"url":"https://github.com/namelessvoid/qrwar","last_synced_at":"2025-10-31T11:30:35.369Z","repository":{"id":8266498,"uuid":"9718538","full_name":"namelessvoid/qrwar","owner":"namelessvoid","description":":european_castle: Pen\u0026Paper like quad ruled war game.","archived":false,"fork":false,"pushed_at":"2020-07-21T19:20:10.000Z","size":2463,"stargazers_count":6,"open_issues_count":17,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-06-15T22:15:51.265Z","etag":null,"topics":["c-plus-plus","game-2d","sfml2","turn-based"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/namelessvoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-27T17:35:11.000Z","updated_at":"2020-07-21T19:20:13.000Z","dependencies_parsed_at":"2022-08-07T00:15:27.376Z","dependency_job_id":null,"html_url":"https://github.com/namelessvoid/qrwar","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namelessvoid%2Fqrwar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namelessvoid%2Fqrwar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namelessvoid%2Fqrwar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namelessvoid%2Fqrwar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/namelessvoid","download_url":"https://codeload.github.com/namelessvoid/qrwar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239187467,"owners_count":19597013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","game-2d","sfml2","turn-based"],"created_at":"2025-02-16T19:35:42.062Z","updated_at":"2025-10-31T11:30:35.328Z","avatar_url":"https://github.com/namelessvoid.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![travis build status badge](https://travis-ci.org/namelessvoid/qrwar.svg?branch=master)\n\n# Introduction\n\nQuad Ruled War (qrw) is a turn based strategy game taking place on a board seperated into squares much like chess. The goal was to produce a minimalistic game for short and fast battles. It only supports hot seat modus for two players on one machine.\n\n\n# Game\n\nControls:\n- `Space`: Toggle flat mode (to reveal stuff occluded by walls)\n\n## Skirmish\n\nThe game has a single game mode \"skirmish\" in which to players compete in a hot-seat match against each other. At first, units are deployed in the marked areas known as deployment zones. Afterwards, the turn-based battle begins and both move and attack until all units of one player have been eliminated.\n\n## Mapeditor\n\nThe map editor is used to create new maps for the skirmish game mode. Terrain, structures and deployment zones can be placed and erased by the tools on the right. To grant access to walls, stairs have to be placed on adjacent tiles. To rotate stairs, right click them.\n\n\n# Building\n\nThe game can be build via cmake.\n\n**Dependencies**\n\n- CMake (\u003e= 3.0)\n- SFML (\u003e= 2.5)\n- TinyXML2 (\u003e= 7.0)\n- yaml-cpp (\u003e= 0.6.2)\n- CppUnit (for tests)\n- gtest \u0026 gmock (for tests)\n\nNote that versions are taken from my Arch Linux - lower versions may work as well but have not been tested.\n\n**Configuration**\n\nThe build can be configured via these CMake variables:\n\n- `BUILD_TESTS`: If set to `OFF`, the test project will not be included in the build. Default: `ON`\n\n**Installation**\n\nInstallation is not yet supported.\n\n## Linux\n\n`mkdir build \u0026\u0026 cd build \u0026\u0026 cmake .. \u0026\u0026 make` should do the trick.\n\nRun the game from the root directory: `./bin/qrwar`\n\nFor detailed instructions you can have a look at the Dockerfiles locatet at `ci/`.\nThere you also find build steps for manually building some thirdparty dependencies.\nNote, however, that they also pull in optional dependencies only required for executing tests within a docker container.\n\nIf you've got any problems building the game feel free to create an issue.\n\n## Windows\n\nYou have to have Visual Studio 2017 installed. At the moment, only 64-bit systems are supported.\n\nBuilding consists of two steps: 1. Build thirdparty dependencies; 2. Build the game.\n\n**Build Thirdparty Dependencies**\n\nSFML, tinyxml2 and yaml-cpp are included as a separate cmake project located in `thirdparty` which pulls the source (or precompiled binaries) and builds them.\n\n1. Open CLI (e.g. git bash) and navigate to `thirdparty` within the source directory\n2. Create and enter build directory: `mkdir build \u0026\u0026 cd build`\n3. Generate solution: `cmake -G \"Visual Studio 15 2017 Win64\" ..`\n4. Build the dependencies: `cmake --build . --config Debug` (alternatively use `--config Release`)\n\n**Build the Game**\n\nAfter building the thirdparty dependencies, the game can be built similarily:\n\n1. Open CLI (e.g. git bash) and navigate to source directory\n2. Create and enter build directory: `mkdir build \u0026\u0026 cd build`\n3. Generate solution: `cmake -G \"Visual Studio 15 2017 Win64\" ..`\n5. Build: `cmake --build . --config Debug` (alternatviely use `--config Release`)\n\n**Run the game**\n\n1. Open CLI (e.g. git bash) and naviate to source directory\n2. Call `bin\\Debug\\qrwar.exe` (or `bin\\Release\\qrwar.exe`)\n\n\n# Third party resources\n\n- [Knightsquest.ttf](http://moorstation.org/typoasis/designers/graham/fonts/knightsq.zip)\n\n  True Type Font by [GemFonts](http://moorstation.org/typoasis/designers/gemnew/home.html). See the .zip file for further information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamelessvoid%2Fqrwar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamelessvoid%2Fqrwar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamelessvoid%2Fqrwar/lists"}