Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
anagorko committed Mar 24, 2021
1 parent 9e73cd3 commit d78414e
Show file tree
Hide file tree
Showing 4 changed files with 659 additions and 296 deletions.
10 changes: 10 additions & 0 deletions lazy_constraints/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ class Move:
def __repr__(self):
return repr(self.dot) + '_' + repr(self.segs[0].dot) + '_' + str(self.segs[0].dir)

@property
def direction(self) -> int:
"""Direction of the move."""
return self.segs[0].dir

@property
def starting_dot(self) -> Dot:
"""The starting dot."""
return self.segs[0].dot

def required_dots(self) -> List[Dot]:
"""A list of dots required to play the move."""

Expand Down
1 change: 1 addition & 0 deletions lazy_constraints/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ numpy
pycairo
Pillow
networkx
termcolor
296 changes: 0 additions & 296 deletions lazy_constraints/solver.py

This file was deleted.

Loading

0 comments on commit d78414e

Please sign in to comment.