From 40b16be125cad466e57dea6016f03ec7995b820b Mon Sep 17 00:00:00 2001 From: spla Date: Fri, 4 Dec 2020 12:36:56 +0100 Subject: [PATCH] Removed unneeded function get_moved_piece_name() --- mastochess.py | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/mastochess.py b/mastochess.py index fbaccaf..688a7b7 100644 --- a/mastochess.py +++ b/mastochess.py @@ -126,34 +126,6 @@ def get_piece_name(captured_piece): return piece_name -def get_moved_piece_name(moved_piece): - - if moved_piece == 1: - - moved_piece_name = pawn_piece_letter - - if moved_piece == 2: - - moved_piece_name = knight_piece_letter - - if moved_piece == 3: - - moved_piece_name = bishop_piece_letter - - if moved_piece == 4: - - moved_piece_name = rook_piece_letter - - if moved_piece == 5: - - moved_piece_name = queen_piece_letter - - if moved_piece == 6: - - moved_piece_name = king_piece_letter - - return moved_piece_name - def get_notification_data(): try: