-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new setup.py file, added some try except methods, validation for para…
…meters
- Loading branch information
1 parent
5cb92f4
commit e5cc263
Showing
11 changed files
with
216 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class Animal: | ||
|
||
def __init__(self, move_dist): | ||
self.move_dist = move_dist | ||
self.__position = [0.0, 0.0] | ||
|
||
def set_position(self, position): | ||
self.__position = position | ||
|
||
def get_position(self): | ||
return self.__position | ||
|
||
def get_x(self): | ||
return self.__position[0] | ||
|
||
def get_y(self): | ||
return self.__position[1] | ||
|
||
def set_x(self, value): | ||
self.__position[0] = value | ||
|
||
def set_y(self, value): | ||
self.__position[1] = value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.