Commit graph

279 commits

Author SHA1 Message Date
Patricia Aas
a06281f145 Initialize member 2021-09-10 16:20:38 +02:00
Corentin Jabot
4b364bdda8 Enable tests on CI 2021-09-10 15:55:59 +02:00
Patricia Aas
262ac5dcc5 No shouty 2021-09-10 15:49:33 +02:00
Patricia Aas
90f546f1b2 Revert "There is no standardized interface to add an additional message to assert errors. A portable way to include one is to use a comma operator provided it has not been overloaded"
This reverts commit 32a27e986e.
2021-09-10 15:35:06 +02:00
Patricia Aas
32a27e986e There is no standardized interface to add an additional message to assert errors. A portable way to include one is to use a comma operator provided it has not been overloaded 2021-09-10 15:33:13 +02:00
Corentin Jabot
b3480111db Fix conversions warning (again) 2021-09-10 15:28:38 +02:00
Patricia Aas
5521dd25b6 Fix cache name 2021-09-10 15:14:56 +02:00
Corentin Jabot
bc83fa77c3 Fix conversions warnings 2021-09-10 15:04:43 +02:00
Patricia Aas
36fc3f5a74 Set no-unused-lambda-capture 2021-09-10 15:04:10 +02:00
Patricia Aas
adbe00a466 Don't install Clang 2021-09-10 15:02:40 +02:00
Patricia Aas
912624ccf9 Cache vcpkg_installed also 2021-09-10 14:39:33 +02:00
Patricia Aas
8b6a0a5c86 Don't use C-cast 2021-09-10 14:32:46 +02:00
Corentin Jabot
eb092224f4 Fix mac build maybe 2021-09-10 14:05:35 +02:00
Corentin Jabot
25394c4cdd Right the wrongs 2021-09-10 14:02:09 +02:00
Patricia Aas
a61da5ab80 Fix cache name 2021-09-10 14:00:33 +02:00
Patricia Aas
8ffa028b2f Try to add caching #4 2021-09-10 13:57:24 +02:00
Ólafur Waage
030c82d1bc Formatting changes. 2021-09-10 13:57:01 +02:00
Patricia Aas
f60e449d8e Corentin is wrong, still 2021-09-10 13:50:30 +02:00
Patricia Aas
0b4926cc60 Corentin is wrong 2021-09-10 13:39:21 +02:00
Patricia Aas
7687fb506c Refactor CMake
Thank you Jason!
2021-09-10 13:10:34 +02:00
Ólafur Waage
d0ab367bee Merge branch 'main' of github.com:mod-cpp/pacman 2021-09-10 12:21:13 +02:00
Ólafur Waage
b7c312ebd7 Adding global to cmake property. 2021-09-10 12:21:05 +02:00
Patricia Aas
43f3514b04 make set_property global 2021-09-10 12:19:31 +02:00
Patricia Aas
9f64660938 use project to set language 2021-09-10 12:19:12 +02:00
Patricia Aas
b30d71ac96 Set C++ version to 17 2021-09-10 11:42:46 +02:00
Patricia Aas
706c6245a5 Capture local explicitly 2021-09-10 11:41:20 +02:00
Patricia Aas
0f7ad08ae9 Add missing include 2021-09-10 11:41:00 +02:00
Ólafur Waage
6d79a0862d Merge branch 'main' of github.com:mod-cpp/pacman 2021-09-10 11:36:46 +02:00
Corentin Jabot
06cb7a17f6 Fix the build again 2021-09-10 11:35:26 +02:00
Ólafur Waage
d9536b94ea Merge branch 'main' of github.com:mod-cpp/pacman 2021-09-10 11:35:24 +02:00
Ólafur Waage
7fbe29740c Adding MSVC_RUNTIME_LIBRARY to global property. 2021-09-10 11:35:15 +02:00
Corentin Jabot
8db4b0af79 Fix the build (this is why you make PRs kids) 2021-09-10 11:24:24 +02:00
Ólafur Waage
e07616ea52 Merge branch 'main' of github.com:mod-cpp/pacman 2021-09-10 11:04:44 +02:00
Corentin Jabot
453dd17d7c Use size_t again 2021-09-10 11:04:27 +02:00
Patricia Aas
54ec3bcdf9 Don't use submodule anymore we are using FetchContent 2021-09-10 10:59:00 +02:00
Ólafur Waage
b3e63d766a Removing const from non reference argument 2021-09-10 10:54:44 +02:00
Ólafur Waage
434875e344
Merge pull request #26 from mod-cpp/owaage_test_refactor
Testing and Code refactor.
2021-09-10 10:23:17 +02:00
Ólafur Waage
1ad8a1ec8e Adding simple deterministic fuzz test for GameState. 2021-09-09 11:15:31 +02:00
Ólafur Waage
2f62f7ae1d Reverting pellet C++20 changes since we don't target 20 fully. 2021-09-09 10:59:59 +02:00
Ólafur Waage
613831f1c0 Fixes for ghost movement where they would occationally exit the stage when cornered. Closes #25 2021-09-09 10:56:29 +02:00
Ólafur Waage
60b3cdeb40 Formatting and const fixes. Also check for extra canGo calls. 2021-09-08 14:49:43 +02:00
Ólafur Waage
b79b2a29e8 Using std::erase for pellets possible in C++20 2021-09-08 10:21:37 +02:00
Ólafur Waage
55fbb53591 Refactoring Game and GameState. Moving game state update logic into that class. Game is now only event loop. 2021-09-07 16:00:19 +02:00
Ólafur Waage
ee4b216056 Adding ghost dead test. 2021-09-07 15:30:48 +02:00
Ólafur Waage
cbe5798590 Adding a couple of Ghost tests. 2021-09-07 11:25:45 +02:00
Ólafur Waage
aa45121bec Minor formatting and warning fixes. 2021-09-06 16:40:42 +02:00
Ólafur Waage
d0bd69aee1 Removing unnecessary forward decl. 2021-09-06 16:27:29 +02:00
Ólafur Waage
00bfd15074 Adding epsilon test for Position. Also adding tests for GridPosition and Position. 2021-09-06 16:24:30 +02:00
Ólafur Waage
4c47509d1b Cleanup of how tests are discovered. Prefix not needed or used. 2021-09-06 16:00:48 +02:00
Ólafur Waage
27517cdfa6 Seperating test files from the main test cpp file. 2021-09-06 15:54:19 +02:00