-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hugo/feature/Add SuperSimon activity #1014
Conversation
HPezz
commented
Sep 9, 2022
•
edited
Loading
edited
- Validated on robot
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
Codecov Report
@@ Coverage Diff @@
## develop #1014 +/- ##
===========================================
- Coverage 96.08% 96.01% -0.07%
===========================================
Files 133 131 -2
Lines 3138 3085 -53
===========================================
- Hits 3015 2962 -53
Misses 123 123
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
b2d56e2
to
18663aa
Compare
3633449
to
dda1778
Compare
18663aa
to
2b3ced2
Compare
dda1778
to
831e956
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick review, but this one is bit complex, would like to discuss offline
|
||
// LCOV_EXCL_START | ||
|
||
#include <random> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if possible, move to .cpp
std::array<Color, 2 *kNumberOfColors> _colors_table = {Color::blue, Color::blue, Color::green, Color::green, | ||
Color::red, Color::red, Color::purple, Color::purple, | ||
Color::orange, Color::orange, Color::yellow, Color::yellow}; | ||
std::span<Color> _colors_span {_colors_table}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
ReinforcerKit &_reinforcerkit; | ||
interface::LED &_led; | ||
|
||
static constexpr uint8_t kNumberOfColors = 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static constexpr uint8_t kNumberOfColors = 6; | |
static constexpr uint8_t kNumberOfColors = 6 * 2; |
uint8_t _score = 0; | ||
uint8_t _pos = 0; | ||
uint8_t _index_number = 0; | ||
uint8_t _score_to_win = 5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uint8_t _score = 0; | |
uint8_t _pos = 0; | |
uint8_t _index_number = 0; | |
uint8_t _score_to_win = 5; | |
uint8_t _current_round = 0; | |
uint8_t _pos = 0; | |
uint8_t _index_number = 0; | |
uint8_t _number_of_rounds = 5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is _pos
and _index_number
?
position and index are usually the exact same thing
return card == MagicCard::number_1 || card == MagicCard::number_2 || card == MagicCard::number_3 || | ||
card == MagicCard::number_4 || card == MagicCard::number_5 || card == MagicCard::number_6 || | ||
card == MagicCard::number_7 || card == MagicCard::number_8 || card == MagicCard::number_9 || | ||
card == MagicCard::number_10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have the numbers_table
, why not use std::find
?
2b3ced2
to
3aecfd2
Compare
831e956
to
685ff14
Compare
3aecfd2
to
8d97d1b
Compare
685ff14
to
7b788a4
Compare
8d97d1b
to
b832f46
Compare
7b788a4
to
b88df8a
Compare
b832f46
to
c3540a1
Compare
b88df8a
to
ccca540
Compare
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
c3540a1
to
dc28ebc
Compare
dc28ebc
to
29a9e5a
Compare
ccca540
to
bd777e8
Compare
bd777e8
to
23f3098
Compare