Skip to content
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

Simple navigation show, restore the LeftToRightAndBack show #21

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

johnemajor
Copy link

.

Copy link

@sul3n3t sul3n3t left a comment

Choose a reason for hiding this comment

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

Awesome! Added a couple comments on parts you could do more concisely, but definitely don't need to. PR needs to resolve merge conflicts, which should be minor.

@@ -41,7 +41,7 @@ class Cell(NamedTuple):
orientation: Orientation
addresses: List["Address"]

row_count = 11
row_count = 11 #why is this hard coded? (jem)
Copy link

Choose a reason for hiding this comment

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

Fixed in #19

@@ -11,7 +11,7 @@ def __init__(self, grid, frame_delay=0.1):
self.grid = grid
self.frame_delay = frame_delay

# from IPython import embed; embed()
from IPython import embed; embed()
Copy link

Choose a reason for hiding this comment

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

Probably meant to keep this commented out for master.

while True:
hsv = HSV(1.0, 1, 1)

for row in range (0,11):
Copy link

Choose a reason for hiding this comment

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

After #19 merged, you can do (if you want):

for row in range(self.grid.rows):
    for col in range(self.grid.geom.row_length(row)):
        self.grid.set(Position(row, col), hsv)

a_ctr = 0
for points in traversal.left_to_right(n_rows):
for (row, col) in points:
cell = self.grid.select(Position(row=row,col=col))
Copy link

Choose a reason for hiding this comment

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

This can be cell = self.grid[Position(row, col)] and you don't have to do cell[0] after.

@silverlyra silverlyra removed their request for review October 13, 2022 20:21
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.

3 participants