From 691bd33bc8aca760fbba911b7748872f91e96240 Mon Sep 17 00:00:00 2001 From: yusuke bono Date: Tue, 3 Mar 2020 20:27:00 +0900 Subject: [PATCH] Changed "global table" to "table.clear()" --- Dg8x.py | 2 +- E2cs.py | 2 +- Eb4L.py | 2 +- Ej7N.py | 2 +- Et2T.py | 2 +- G6kv.py | 2 +- Hv72.py | 2 +- Jz5M.py | 2 +- K8i6.py | 2 +- Q3ga.py | 2 +- R2yT.py | 2 +- Tw2y.py | 2 +- Zy7E.py | 2 +- d9Ke.py | 2 +- e2NU.py | 2 +- g2V9.py | 2 +- gW7F.py | 2 +- hD4V.py | 2 +- hY4Z.py | 2 +- rV5Q.py | 2 +- u4Jc.py | 2 +- v2Ps.py | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Dg8x.py b/Dg8x.py index 6255d20..5c7b00c 100644 --- a/Dg8x.py +++ b/Dg8x.py @@ -69,7 +69,7 @@ def create_players(): players = [human, computer1, computer2, computer3] def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/E2cs.py b/E2cs.py index 6e2e02d..5b9531e 100644 --- a/E2cs.py +++ b/E2cs.py @@ -97,7 +97,7 @@ def create_players(): players = [human, computer1, computer2, computer3] def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/Eb4L.py b/Eb4L.py index 4e37ed0..47b11b5 100644 --- a/Eb4L.py +++ b/Eb4L.py @@ -126,7 +126,7 @@ def show_coin(): print(message) def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/Ej7N.py b/Ej7N.py index f7913a7..1c7b985 100644 --- a/Ej7N.py +++ b/Ej7N.py @@ -130,7 +130,7 @@ def show_coin(): print(message) def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/Et2T.py b/Et2T.py index dcc4a99..837fd72 100644 --- a/Et2T.py +++ b/Et2T.py @@ -91,7 +91,7 @@ def create_players(): players = [human, computer1, computer2, computer3] def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/G6kv.py b/G6kv.py index 4401def..6925744 100644 --- a/G6kv.py +++ b/G6kv.py @@ -96,7 +96,7 @@ def create_players(): players = [human, computer1, computer2, computer3] def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/Hv72.py b/Hv72.py index fc6b154..ea7943e 100644 --- a/Hv72.py +++ b/Hv72.py @@ -72,7 +72,7 @@ def create_players(): players = [human, computer1, computer2, computer3] def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/Jz5M.py b/Jz5M.py index c345d4f..300db8b 100644 --- a/Jz5M.py +++ b/Jz5M.py @@ -138,7 +138,7 @@ def show_coin(): print(message) def create_table(): - global table + table.clear() table.append(Cell('R', 2, 'red')) table.append(Cell('B', 2, 'black')) table.append(Cell('1', 8, 'red')) diff --git a/K8i6.py b/K8i6.py index 8980927..cc887d0 100644 --- a/K8i6.py +++ b/K8i6.py @@ -123,7 +123,7 @@ def show_coin(): print(message) def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/Q3ga.py b/Q3ga.py index 725a250..28b96b8 100644 --- a/Q3ga.py +++ b/Q3ga.py @@ -123,7 +123,7 @@ def show_coin(): print(message) def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/R2yT.py b/R2yT.py index 72f4871..d1b2df7 100644 --- a/R2yT.py +++ b/R2yT.py @@ -72,7 +72,7 @@ def create_players(): players = [human, computer1, computer2, computer3] def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/Tw2y.py b/Tw2y.py index ba1dde1..ff937b6 100644 --- a/Tw2y.py +++ b/Tw2y.py @@ -126,7 +126,7 @@ def show_coin(): print(message) def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/Zy7E.py b/Zy7E.py index 4d6abec..7bacd56 100644 --- a/Zy7E.py +++ b/Zy7E.py @@ -106,7 +106,7 @@ def bet_players(): player.bet() def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/d9Ke.py b/d9Ke.py index 2e42eb1..860c55d 100644 --- a/d9Ke.py +++ b/d9Ke.py @@ -101,7 +101,7 @@ def bet_players(): player.bet() def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/e2NU.py b/e2NU.py index c87223c..4af58eb 100644 --- a/e2NU.py +++ b/e2NU.py @@ -192,7 +192,7 @@ def show_coin(): print(message) def create_table(): - global table + table.clear() table.append(Cell('R', 2, 'red')) table.append(Cell('B', 2, 'black')) table.append(Cell('1', 8, 'red')) diff --git a/g2V9.py b/g2V9.py index 49efaf2..74b0493 100644 --- a/g2V9.py +++ b/g2V9.py @@ -69,7 +69,7 @@ def create_players(): players = [human, computer1, computer2, computer3] def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/gW7F.py b/gW7F.py index 157a19b..d6d3419 100644 --- a/gW7F.py +++ b/gW7F.py @@ -114,7 +114,7 @@ def check_hit(): print(player.name + 'は当たり') def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/hD4V.py b/hD4V.py index a7ae348..3a47c30 100644 --- a/hD4V.py +++ b/hD4V.py @@ -69,7 +69,7 @@ def create_players(): players = [human, computer1, computer2, computer3] def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/hY4Z.py b/hY4Z.py index 3f48bf0..87ac540 100644 --- a/hY4Z.py +++ b/hY4Z.py @@ -126,7 +126,7 @@ def show_coin(): print(message) def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/rV5Q.py b/rV5Q.py index 62f9817..d51349a 100644 --- a/rV5Q.py +++ b/rV5Q.py @@ -120,7 +120,7 @@ def win_player(player, hit_cell_number): print(player.name + 'は当たり ' + str(win_coin) + 'コインを獲得しました。') def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red')) diff --git a/u4Jc.py b/u4Jc.py index b296830..5156dc2 100644 --- a/u4Jc.py +++ b/u4Jc.py @@ -188,7 +188,7 @@ def show_coin(): print(message) def create_table(): - global table + table.clear() table.append(Cell('R', 2, 'red')) table.append(Cell('B', 2, 'black')) table.append(Cell('1', 8, 'red')) diff --git a/v2Ps.py b/v2Ps.py index 82b2ae0..e3207d8 100644 --- a/v2Ps.py +++ b/v2Ps.py @@ -63,7 +63,7 @@ def create_players(): players = [human, computer1, computer2, computer3] def create_table(): - global table + table.clear() table.append(Cell('R', 8, 'red')) table.append(Cell('B', 8, 'black')) table.append(Cell('1', 2, 'red'))