Skip to content

Small refactor to have rows and columns that rotate#2

Open
kevbite wants to merge 1 commit into
masterfrom
rows-and-columns
Open

Small refactor to have rows and columns that rotate#2
kevbite wants to merge 1 commit into
masterfrom
rows-and-columns

Conversation

@kevbite

@kevbite kevbite commented Aug 14, 2020

Copy link
Copy Markdown
Member

No description provided.

Comment thread RubiksCube/Cube.cs
var right = Right.WithLeftColumn(Top.GetBottomRow().Rotate(Rotation.Clockwise));

var top = Top.WithBottomRow(Left.BottomRight, Left.MiddleRight, Left.TopRight);
var top = Top.WithBottomRow(Left.GetRightColumn().Rotate(Rotation.Clockwise));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this column upside down? Just comparing to bottom which the original code pulls in the opposite order

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oddly I thought that as when I first changed around the code the tests failed... so then I convinced myself that I was rotating it wrong. 🤔

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants