Make the decision logic of wikipediagame more easy to comprehend. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 7c7fda49cbf8a1b81d5829257acfe86f9c8a5de5
(DIR) parent e884cc5206617ce8dc13d3e6f19fb51a5fada955
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Mon, 10 Apr 2023 16:01:52 +0200
Make the decision logic of wikipediagame more easy to comprehend.
Diffstat:
M wikipediagame | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/wikipediagame b/wikipediagame
@@ -53,13 +53,11 @@ def main(args):
title = str(json.load(titlefd))
titlefd.close()
else:
- title = str(w.random())
- newtitle = 1
- printsummary = 1
+ title = ""
if len(title) == 0:
print("There is no game started. Please run init.")
- return 1
+ return 0
if newtitle == 1:
titlefd = open(titlepath, "w+")