cclauss
239aad543c
List comprehensions, and other simplifications
...
Use isinstance() for type comparisons.
Use with open() to ensure that file close() happens.
Also random.choice(), str.join(), str.format(), str.partition(), ternary if
2017-06-21 07:40:10 +02:00
Ben Magee
1219b1d7c7
Added get_random_from_region(region) function to the Database class, which picks a random Pokemon from the specified region (passed as a string: johto, kanto, hoenn, sinnoh). Added a wrapper in the main.py file, so a call such as 'pokemon random-johto' can be made to pick a random Pokemon from the Johto region.
2017-06-07 10:03:52 +01:00
LazoCoder
7c43b0c93e
Bug fix for FileNotFoundError
...
Attempt at fixing:
[Errno 2] No such file or directory:
'/Library/Frameworks/Python.framework/Versions/3.5/bin/./Data/pokemon.tx
t'
2017-06-06 16:53:55 -04:00
LazoCoder
392d4a119b
Fixed issue with relative path
2017-06-06 12:31:24 -04:00
LazoCoder
44d471826d
Fixed index out of bounds bug in random function
2017-04-30 21:58:43 -04:00
LazoCoder
18f5b8f08d
Added ability to check what the current pokemon is in the terminal or wallpaper
2017-04-28 19:17:44 -04:00
LazoCoder
7faf120282
Changing wallpaper support
2017-04-28 18:26:00 -04:00
LazoCoder
9838c3eb15
Refactored database, added different ways of retrieving pokemon & made unit test class
2017-04-28 15:51:42 -04:00
LazoCoder
9dc09c1d79
Fixed Pokemon class where __str__ method wasn't working for null values
2017-04-28 04:02:50 -04:00
LazoCoder
87f8cec207
Added random selection and fixed typo in johto getter
2017-04-28 03:55:40 -04:00
LazoCoder
a863512084
Added script creator and a bunch of print methods
2017-04-28 03:46:39 -04:00