Commit Graph

59 Commits

Author SHA1 Message Date
jorenchik
9564021612 removed not reached comment 2024-04-12 21:51:34 +03:00
jorenchik
455105351c feat: white box tests 2024-04-12 21:24:30 +03:00
Kristofers Solo
90c78eaa04 refactor: add static to functions
- Update functions to be declared as static for improved code clarity
- No functional changes made, only internal refactoring
2024-03-14 12:49:58 +02:00
Jorens Shtekels
099dd2e94b refactor[validation func]: restructured the order of function for the top down rule
Not that important, but it's more nice :3
2024-03-14 08:55:41 +02:00
Kristofers Solo
72b89de4ce fix: invalid validation result 2024-03-14 03:28:22 +02:00
Kristofers Solo
e316beedbc feat: add to_string to ValidationStatus 2024-03-14 03:22:20 +02:00
Kristofers Solo
7fd0c887ec refactor(enum): use enum class
refactor(enum): convert validation enum to enum class
2024-03-14 03:21:56 +02:00
Kristofers Solo
4e63f81655 refactor(validation): set params as const 2024-03-14 03:06:23 +02:00
Kristofers Solo
c62cd4c413 refactor: use pragma once 2024-03-14 02:51:07 +02:00
Kristofers Solo
a343dcbe78 docs: add docstrings 2024-03-14 02:47:00 +02:00
Kristofers Solo
6b7f41e41a test: add google tests 2024-03-14 02:24:16 +02:00
Kristofers Solo
29f9e60a33 refactor(test): remove tests (for now) 2024-03-14 01:58:43 +02:00
Kristofers Solo
6ed14fd2c0 refactor(modules): move files to modules dir 2024-03-14 01:43:19 +02:00
Kristofers Solo
9f0b32ed8c refactor(validation): move validation to separate file 2024-03-14 01:31:32 +02:00
Kristofers Solo
09d17e2d0a refactor(event): move event to separate file 2024-03-14 01:20:39 +02:00
Kristofers Solo
5238b348c6 refactor(time): move time to root 2024-03-14 01:01:19 +02:00
Kristofers Solo
cad8e6d032 refactor(room): move room to separate file 2024-03-14 00:56:19 +02:00
Kristofers Solo
b4b01c4a11 refactor(player): move player to separate file 2024-03-14 00:48:16 +02:00
Kristofers Solo
9a4b8831ee refactor(role): move role to separate file 2024-03-14 00:40:35 +02:00
Kristofers Solo
f9e6644ebc refactor(action): move action to separate file 2024-03-14 00:36:06 +02:00
Kristofers Solo
acf1bcc2c7 refactor: change cpp files to cc 2024-03-14 00:28:52 +02:00
Kristofers Solo
03933af4b2 refactor: move run function to main 2024-03-14 00:27:18 +02:00
Jorens Shtekels
37f78c20c4 fix: Player constructor 2024-03-12 22:45:51 +02:00
Jorens Shtekels
bba9ddc04a feat: simple test example 2024-03-12 22:44:33 +02:00
Jorens Shtekels
b2e2e44599 feat: remove add function 2024-03-12 22:44:29 +02:00
Jorens Shtekels
cb7927a6fc feat: removed push initialization of vectors 2024-03-12 22:41:47 +02:00
Jorens Shtekels
423669ab42 feat: remove functionToTest 2024-03-12 22:39:51 +02:00
Jorens Shtekels
93791b4ef6 feat: remove unneeded comment 2024-03-12 22:39:08 +02:00
Jorens Shtekels
871faaa2a3 feat: null checks and rename some options 2024-03-12 22:31:52 +02:00
Jorens Shtekels
2f585a3318 feat: detailed the printed info 2024-03-12 22:04:55 +02:00
Jorens Shtekels
ec828dfaa3 feat: rename target player not specified 2024-03-12 22:03:00 +02:00
Jorens Shtekels
23c1c23858 feat: player belongs to a room with a check 2024-03-12 22:02:22 +02:00
Jorens Shtekels
23345ba89f feat: add player to the room 2024-03-12 21:51:05 +02:00
Jorens Shtekels
db4a4be369 feat: remove caused by from event 2024-03-12 21:01:44 +02:00
Jorens Shtekels
db22be9340
Merge pull request #7 from jorenchik/develop
finish validation function
2024-03-10 21:35:01 +02:00
Jorens Shtekels
a291411d10 feat: calling validation function 2024-03-10 21:33:07 +02:00
Jorens Shtekels
10c486e996 feat: action belongs to role check 2024-03-10 21:16:10 +02:00
Jorens Shtekels
b4ad74aa87
Merge pull request #6 from jorenchik/develop
validation logic
2024-03-10 21:12:05 +02:00
Jorens Shtekels
ce9e6be7e7 feat: event prohibition 2024-03-10 21:10:17 +02:00
Jorens Shtekels
9a7bc42db6 feat: target player bool for action
Added validation logic that checks for target player if needed.
2024-03-10 21:09:10 +02:00
Jorens Shtekels
2b6d7dab47
Merge pull request #4 from jorenchik/develop
partial validate action implementation
2024-03-10 20:22:45 +02:00
Jorens Shtekels
ee12e48a86 feat[lib]: validate action partial implementation
Performed most checks. Added placeholders to functions called.
2024-03-10 20:15:55 +02:00
Kristofers Solo
526c07890e test: remove examples 2024-03-10 19:49:35 +02:00
Jorens Shtekels
6aea36d05b feat[lib]: function placeholder 2024-03-10 19:47:04 +02:00
Jorens Shtekels
30eef4d797 feat[prep]: event prohibits and allows other actions 2024-03-10 19:47:04 +02:00
Jorens Shtekels
fb05b5d6c3 feat[lib]: function placeholder 2024-03-10 19:41:59 +02:00
Jorens Shtekels
faf6d64ce0 feat[prep]: event prohibits and allows other actions 2024-03-10 19:29:18 +02:00
Jorens Shtekels
6d8e56f962 feat[prep]: role, player constructors 2024-03-10 19:19:57 +02:00
Jorens Shtekels
0b16d5f92b feat[prep]: role, player constructors 2024-03-10 19:19:00 +02:00
Jorens Shtekels
0a61c08a0e feat[prep]: move time function into a module 2024-03-10 18:59:20 +02:00