Commit graph

252 commits

Author SHA1 Message Date
Ó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
Ólafur Waage
fe32b18d0c Isolating SFML to the Canvas class. 2021-09-06 15:38:40 +02:00
Ólafur Waage
aa22b91e8b Adding header files to their own folder in the project. 2021-09-06 14:51:01 +02:00
Ólafur Waage
b55e654cce Adding MTd for statically linking in Windows due to asan dll's not being in path by default. 2021-09-02 10:37:03 +02:00
Olafur Waage
586ad62fed Lowering cmake version to 3.16 since that's the version ubuntu 20.04 LTS uses. 2021-08-27 15:32:31 +02:00
Ólafur Waage
f1e0430874
Corrected spelling of pick. 2021-08-27 14:23:50 +02:00
Patricia Aas
d196491ea4 Rename variable and remove unneeded curlies 2021-08-25 11:26:13 +02:00
Patricia Aas
4b7015b96b Remove unneeded init 2021-08-25 11:23:54 +02:00
Corentin Jabot
af1c650727 Be more explicit about captures 2021-08-12 10:19:54 +02:00
Corentin Jabot
b3798ef2df Remove a nodiscard 2021-08-12 10:18:51 +02:00
nicole mazzuca
c3440d7eba use FetchContent instead 2021-08-05 10:39:14 +02:00
Patricia Aas
eaf61585ea Fix Clang-Tidy warnings 2021-08-02 16:43:18 +02:00
Patricia Aas
71e412696d Add link to README.md 2021-08-02 16:42:30 +02:00
Patricia Aas
abaa4f6381 Try VCPKG_CHAINLOAD_TOOLCHAIN_FILE again 2021-08-02 15:47:05 +02:00
Corentin Jabot
76c931656f Remove nodiscard 2021-08-02 15:31:32 +02:00
Patricia Aas
d3cc1d90c7 Fix warnings 2021-08-02 15:28:07 +02:00
Corentin Jabot
d4ae224a67 Fix toolchain file path 2021-08-02 14:48:44 +02:00
Corentin Jabot
2cc15c6dcb add toolchain file 2021-08-02 14:46:26 +02:00
Patricia Aas
c10eb99336 Early return in Clyde 2021-08-02 14:24:11 +02:00
Patricia Aas
ab9664d07f Name changes and typos 2021-08-02 14:09:03 +02:00
Patricia Aas
335f15e276 Add a .clang-tidy file 2021-08-02 14:07:57 +02:00
Corentin Jabot
17ac48f713 Implement ghost movements 2021-07-29 11:16:08 +02:00
Patricia Aas
43ccaae3ef Rename variable 2021-07-28 19:06:35 +02:00
Patricia Aas
99cf57956c Init pos 2021-07-28 17:01:22 +02:00
Patricia Aas
4d53ccce18 Introduce scatterTarget function and inline things that should be in the ghost 2021-07-28 16:39:27 +02:00
Corentin Jabot
f31d238bd4 Rename speedy, remove starting position 2021-07-28 16:20:19 +02:00
Corentin Jabot
59484babef Update vcpkg 2021-07-28 15:46:25 +02:00
Patricia Aas
79b78f7dc0 Remove pacman:: 2021-07-28 15:41:32 +02:00