Introduction
Introduction Statistics Contact Development Disclaimer Help
Make the decision logic of wikipediagame more easy to comprehend. - annna - Ann…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 7c7fda49cbf8a1b81d5829257acfe86f9c8a5de5
parent e884cc5206617ce8dc13d3e6f19fb51a5fada955
Author: Annna Robert-Houdin <[email protected]>
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(-)
---
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+")
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.