fixed ctrl-c bug
This commit is contained in:
parent
7a0177bbfb
commit
c26299fd0e
|
@ -215,14 +215,16 @@ def main():
|
|||
|
||||
|
||||
import sys
|
||||
w=None
|
||||
try:
|
||||
w=main()
|
||||
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
finally:
|
||||
print("\033cGoodbye!"+reset,end='')
|
||||
cliflag = sys.argv[1] if len(sys.argv) > 1 else ''
|
||||
if(cliflag != "--no-unicode"):
|
||||
if(w and cliflag != "--nounicode"):
|
||||
print("\n\nWordle "+str(w.turn)+"/6")
|
||||
blocks=["⬛","🟨","🟩"]
|
||||
for guess in w.guesses:
|
||||
|
|
Loading…
Reference in New Issue