From a08473ffa398a341f3e84bd6dc6458cd5e62642f Mon Sep 17 00:00:00 2001 From: yusuke bono Date: Tue, 3 Mar 2020 20:56:07 +0900 Subject: [PATCH] Remove "global lifes" --- wS7P.py | 1 - x5NB.py | 1 - 2 files changed, 2 deletions(-) diff --git a/wS7P.py b/wS7P.py index 01284f2..90ffc9c 100644 --- a/wS7P.py +++ b/wS7P.py @@ -58,7 +58,6 @@ def view_result(result): show_life() def update_life(result): - global lifes if result == 'win': lifes['you'] -= 1 elif result == 'lose': diff --git a/x5NB.py b/x5NB.py index a554b7f..44a2b0e 100644 --- a/x5NB.py +++ b/x5NB.py @@ -54,7 +54,6 @@ def view_result(result): show_life() def update_life(result): - global lifes if result == 'win': lifes['you'] -= 1 elif result == 'lose':