From: Christian Heller Date: Tue, 15 Dec 2015 23:26:02 +0000 (+0100) Subject: New client: Remove duplicate code. X-Git-Tag: tce~234 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/templates?a=commitdiff_plain;h=90dbaff8a39af44f8e1ed4f0268009bf36775e95;p=plomrogue New client: Remove duplicate code. --- diff --git a/client_prototype.py b/client_prototype.py index 53b49b2..5bcfee5 100644 --- a/client_prototype.py +++ b/client_prototype.py @@ -384,20 +384,6 @@ def win_look(): return offset, winmap_size, winmap -def win_look(): - winmap = "" - winmap_size = [0, 0] - for line in world_data["look"]: - winmap_size[1] = winmap_size[1] if len(line) <= winmap_size[1] \ - else len(line) - for line in world_data["look"]: - padding_size = winmap_size[1] - len(line) - winmap += line + (" " * padding_size) - winmap_size[0] = winmap_size[0] + 1 - offset = [0, 0] - return offset, winmap_size, winmap - - def win_info(): winmap = "T: " + str(world_data["turn"]) \ + " H: " + str(world_data["lifepoints"]) \