From 90dbaff8a39af44f8e1ed4f0268009bf36775e95 Mon Sep 17 00:00:00 2001 From: Christian Heller <c.heller@plomlompom.de> Date: Wed, 16 Dec 2015 00:26:02 +0100 Subject: [PATCH] New client: Remove duplicate code. --- client_prototype.py | 14 -------------- 1 file changed, 14 deletions(-) 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"]) \ -- 2.30.2