Commit graph

147 commits

Author SHA1 Message Date
Dag-Erling Smørgrav
34445c7540 Add Q for quit. 2021-10-19 10:50:21 +02:00
Corentin Jabot
b80c9708ca Add missing header 2021-10-18 15:36:59 +02:00
Patricia Aas
a70be02733 Remove hard coding of filename 2021-10-17 21:33:54 +02:00
Patricia Aas
cce98514a7 Remove unnecessary explicits 2021-10-14 12:31:45 +02:00
Patricia Aas
8f396d0545 Set the value as a double 2021-10-11 12:16:28 +02:00
Patricia Aas
60774761f5 Make better parameter names 2021-10-07 13:15:08 +02:00
Corentin Jabot
be472fa4b3 Slide driven development 2021-10-06 13:38:24 +02:00
Corentin Jabot
6923904c61 Canvas::update=>render 2021-10-06 13:30:07 +02:00
Corentin Jabot
c053b38c03 Fix build 2021-10-06 11:37:48 +02:00
Corentin Jabot
1e219e7695 cleanup InputState::direction 2021-10-06 11:16:32 +02:00
Corentin Jabot
a835774f5a Remove part of the AI implementation 2021-10-05 15:46:16 +02:00
Patricia Aas
ebed3ee8f1 Fix Clang Tidy warning 2021-10-05 14:48:26 +02:00
Corentin Jabot
d3e7ed1f46 Pressing A switches from the player to the AI. 2021-10-05 14:31:21 +02:00
Corentin Jabot
c6d13a046a Add some AI tests 2021-10-05 13:43:08 +02:00
Corentin Jabot
d5379872ce Cleanup AI code 2021-10-05 12:11:29 +02:00
Patricia Aas
b79c44c491 Remove unused include 2021-10-05 09:47:55 +02:00
Patricia Aas
88f81cd0ae Move Clyde to the solution folder for day 1 ghost exercise 2021-10-05 09:46:29 +02:00
Ólafur Waage
3a02ae2316 Adding board unit tests. 2021-09-28 14:34:48 +02:00
Ólafur Waage
1f4fb7c8a1 Turning off AI for now. 2021-09-28 10:54:31 +02:00
Ólafur Waage
1c05f500b0 Refactoring ghost's target and update to no longer require *this. They each have their own target function which sets a target variable within Ghost. 2021-09-23 14:57:53 +02:00
Ólafur Waage
a951c19a05 Changes after code review. 2021-09-22 14:15:33 +02:00
Ólafur Waage
260adb54db Fixes for clang-tidy. 2021-09-22 14:06:17 +02:00
Ólafur Waage
db0756ca21 Different AI implementation. Now searches for nearest pellet. No ghost checks yet. 2021-09-20 15:17:07 +02:00
Ólafur Waage
9031609348 Work on the AI project. Not sure if this is good as an exercise. 2021-09-17 16:44:16 +02:00
Ólafur Waage
0712db77bb Initial helper functions for PacMan AI. Not complete. 2021-09-16 16:36:57 +02:00
Ólafur Waage
cd86d91310 Adding unit tests for fruits. Also some minor cleanup. 2021-09-15 14:40:07 +02:00
Ólafur Waage
2afe8f1d36 Fixing tidy error. 2021-09-15 13:42:52 +02:00
Ólafur Waage
ed6466a306 Fixing forward decl issue and conversion error. 2021-09-15 13:39:42 +02:00
Corentin Jabot
c495dd9c37 Basic fruits support
Of course, there is no support for levels yet!
2021-09-13 14:48:59 +02:00
Corentin Jabot
f385036bee Disable clang-tidy clechs which create false positive in gtest 2021-09-11 09:42:53 +02:00
Patricia Aas
64d30408c6 Fix typos 2021-09-10 16:20:38 +02:00
Patricia Aas
a06281f145 Initialize member 2021-09-10 16:20:38 +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
Corentin Jabot
bc83fa77c3 Fix conversions warnings 2021-09-10 15:04:43 +02:00
Corentin Jabot
25394c4cdd Right the wrongs 2021-09-10 14:02:09 +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
Corentin Jabot
06cb7a17f6 Fix the build again 2021-09-10 11:35:26 +02:00
Corentin Jabot
8db4b0af79 Fix the build (this is why you make PRs kids) 2021-09-10 11:24:24 +02:00
Corentin Jabot
453dd17d7c Use size_t again 2021-09-10 11:04:27 +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
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