From f382435225f2c7bdd6439fb7feb3a7612c5f07b7 Mon Sep 17 00:00:00 2001 From: Baris Balli Date: Sat, 30 Sep 2023 12:11:38 +0200 Subject: [PATCH] Small refactor --- .gitignore | 3 +-- TODO | 1 - hero.go | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 TODO diff --git a/.gitignore b/.gitignore index ca76a01..600d2d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -.vscode -TODO \ No newline at end of file +.vscode \ No newline at end of file diff --git a/TODO b/TODO deleted file mode 100644 index d7b9f6e..0000000 --- a/TODO +++ /dev/null @@ -1 +0,0 @@ -Make the number of bomb limited with 5 and make it available when other bombs explode \ No newline at end of file diff --git a/hero.go b/hero.go index 6597d18..7d81981 100644 --- a/hero.go +++ b/hero.go @@ -103,8 +103,6 @@ func (h *Hero) addBomb(s tcell.Screen, style tcell.Style, clickedX, clickedY int bomb.draw(s, style, ticker, bombExploded, explosionComplete, &explosionWaitGroup) - // TODO: use the waitGroups to be sure that each goroutine are not leaking - go func() { for { <-bombExploded