Commit Graph

18 Commits

Author SHA1 Message Date
002d8a0804 Add missing value if the last frame is a spare 2025-03-27 15:38:31 +01:00
1228b7150a Validate if there are more or less than the allowed rolls, if the numbers are valid and if the number isn't a number. 2025-03-27 15:07:45 +01:00
76284c3951 Add 0 roll handling aswell 2025-03-27 13:54:02 +01:00
aa81717fd9 Removing the redundant score calculation from parseValues, as the overarching logic is the same as the calculateScore function 2025-03-27 12:26:17 +01:00
7d9da3cc50 The printing function now only prints a single string, that has been created by the function PrintFrames::parseValue(vector<Frame> frames) that parses the frames 2025-03-27 12:24:02 +01:00
f5e96e7704 Now iterating over a Frame object 2025-03-26 23:03:23 +01:00
05ba979f58 Testing roll combination validation 2025-03-26 12:44:11 +01:00
8fdd4c18fd Validate if roll is higher than 10, and lower than 0 2025-03-26 12:05:45 +01:00
c14a29a070 Add comment 2025-03-19 11:58:53 +01:00
3fd7328f66 Add comments 2025-03-19 11:46:19 +01:00
5b61f0e5d9 Follow c++ naming convention 2025-03-19 11:21:04 +01:00
67d8fa370d Fix include folder name, update dockerfile and compile the executable inside the docker container 2025-03-19 10:26:16 +01:00
48a2c065f0 Changed the code formatting a bit 2025-03-18 20:25:00 +01:00
959a55d4d0 Print formated output with the frames and rolls now works 2025-03-18 20:00:59 +01:00
43cd0101f3 Score calculation has been moved to it's own file 2025-03-18 16:40:31 +01:00
e52031d3df Initial implementation of calculation of the score 2025-03-18 15:39:43 +01:00
842e015c14 Add way to extract numbers from the csv file 2025-03-17 13:47:58 +01:00
fd03f5561f Add boilerplate code. 2025-03-17 10:53:26 +01:00