jmdejong / Asciifarm

Multiplayer ascii-graphics based RPG/farming game
GNU General Public License v3.0
65 stars 4 forks source link

Code review #1

Closed rakiru closed 6 years ago

rakiru commented 6 years ago

I've made a few changes in separate commits, so you can cherrypick only some of them if preferred:

Other things:

jmdejong commented 6 years ago

Nice, thanks!

I'll check all changes and commits before merging, but I'll reply to your mentioned poins first:

rakiru commented 6 years ago
  1. I just realised these are in separate scripts, not the main project, so even less of an issue:
    • test/colourtest.py:12
    • test/test2.py:11
  2. I pushed a commit to just make it catch Exception since there are quite a few possible errors there, and the error handler closes the connection, which seems the best thing to do in every case. Of course, skipping that commit and just making it catch the socket errors would be perfectly fine too.
rakiru commented 6 years ago

Oh, right, the files I mentioned there are just the (i) thing. There are redundant parentheses for return values in client/display/window.py lines 19, 21, 25, and 27, and in server/components/fighter.py line 75 (and while I'm at it - MessagePad has some in the class definition too.