Skip to content

Conversation

@bwhitchurch
Copy link
Owner

Create a better reflective enum (inspired by BetterEnums) to replace biEnum. Refactor existing code in cube.hpp and scrambler to use new enum stuff.

@bwhitchurch bwhitchurch self-assigned this Jan 29, 2023
@bwhitchurch bwhitchurch marked this pull request as draft January 29, 2023 21:26
@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2023

Codecov Report

Merging #1 (ca63f95) into trunk (adde650) will increase coverage by 21.73%.
The diff coverage is 50.00%.

❗ Current head ca63f95 differs from pull request most recent head a108ff3. Consider uploading reports for the commit a108ff3 to get more accurate results

@@             Coverage Diff             @@
##            trunk       #1       +/-   ##
===========================================
+ Coverage   13.22%   34.95%   +21.73%     
===========================================
  Files           4        3        -1     
  Lines         121      123        +2     
  Branches       70       72        +2     
===========================================
+ Hits           16       43       +27     
+ Misses        101       59       -42     
- Partials        4       21       +17     
Flag Coverage Δ
Linux 34.95% <50.00%> (+21.73%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/cube.cpp 0.00% <0.00%> (ø)
src/scrambler.hpp 0.00% <0.00%> (ø)
src/cube.hpp 79.62% <80.76%> (ø)
src/test/scramblerTest.cpp
app/cubeTimer++.cpp

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bwhitchurch bwhitchurch added the enhancement New feature or request label Jan 30, 2023
@bwhitchurch
Copy link
Owner Author

Now just needs docs for all the added stuff.

Copy link
Owner Author

@bwhitchurch bwhitchurch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs documentation for added stuff. May be a couple of missed deletions from refactoring cube.hpp.

/*!
* @brief number of faces on a cube.
*/
constexpr size_t num_cube_faces = 6;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These constants may not be necessary anymore. Should remove them

{CubeFace::LEFT, 'L'},
{CubeFace::FRONT, 'F'},
{CubeFace::BACK, 'B'}}}};
constexpr size_t num_turns = 3;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this constant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants