Ben37123 / Life.py

0 stars 4 forks source link

Little issue with the change size #12

Open hieukien9803 opened 4 years ago

hieukien9803 commented 4 years ago

Whenever I type in "s", it should call the change_size function, and it works well. However, when I type in "size" or "s" with "xxx", whatever it is, it still should work normally but it doesn't. Probably you forgot to add something before that, so it would be better not to break the program. I decided to fix it by adding: if parameter and ('x' in parameter) in that function. And so, this turns out better.

hieukien9803 commented 4 years ago

Another issue is that your user interface is not as organized as it should be when I use the change_size function. It turns out that the first line of the new world is attaching to the status bar which look kind of annoying. It would look much organized when you fix it. For me, I decided to commend this line out: #print(self.__world, end='') and #print(self.status() + '\n' + self.menu(), end=' '). I also change the self.random() to be at the end of the function.