diff --git a/tools.py b/tools.py
index 16998e4..dc777e7 100644
--- a/tools.py
+++ b/tools.py
@@ -2131,12 +2131,29 @@ def newriku():
rikuurl = input("Comment URL: ")
print("\n{\"event\":\"riku’s favors " + rikuround + "\",\"date\":datetime.datetime(" + datetime.datetime.now().strftime("%Y,%-m,%-d") + "),\"url\":\"" + rikuurl + "\",\"lost\":[\"" + "\",\"".join(allout) + "\"],\"received\":[\"" + "\",\"".join(allin) + "\"]}")
+def roulette():
+ x = "temp"
+ inside = random.randint(50,(12 * (datetime.datetime.today().year - datetime.datetime(2010,5,1).year) + datetime.datetime.today().month - datetime.datetime(2010,5,1).month - 50))
+ evenodd = random.choice(["even","odd"])
+ warmcool = random.choice(["warm","cool"])
+ print("\nInside Bet: " + str(inside) + "\n\nOutside Bets:\nOdd/Even: " + evenodd + "\nWarm/Cool: " + warmcool)
+ pool = []
+ for card in colors.cardlist:
+ if card["priority"] == 4 and card["dupe"] == False and card["colour"] != "sig" and card["colour"] != "limited" and len(card["mass"]) == 0 and card["colour"] != "special":
+ pool.append(card["name"])
+ if len(pool) > 9:
+ chosen = sorted(random.sample(pool,10))
+ print("\nDouble Down:\n
\nCard names: " + ", ".join(chosen))
+ theround = input("\nRound number: ")
+ letteurl = input("Comment URL: ")
+ print("\n{\"event\":\"release roulette " + theround + "\",\"date\":datetime.datetime(" + datetime.datetime.now().strftime("%Y,%-m,%-d") + "),\"url\":\"" + letteurl + "\",\"lost\":[\"" + "\",\"".join(chosen) + "\"]}")
+
if __name__ == "__main__":
while True:
index = 0 # adapted from https://stackoverflow.com/a/64536882
indexValidList = []
print("Choose from the list:")
- options = ["Get a list of potential cards to trade in for Riku’s Favors","Generate next palette portfolio","Generate next monochrome portfolio","Generate Switch It Up request","Generate Swap Station request","Generate Go Fish comment","Generate art shop request","Generate art studio request","Check a trade offer","Propose a trade","Get a list of random cards from tradepile (excluding specials)","Get a list of random cards from tradepile (including specials)","Check a card in the collection","Check details of a deck","See decks mastered today","See some statistics about the collection"]
+ options = ["Get a list of potential cards to trade in for Riku’s Favors","Generate next palette portfolio","Generate next monochrome portfolio","Generate Switch It Up request","Generate Swap Station request","Generate Go Fish comment","Generate Release Roulette comment","Generate art shop request","Generate art studio request","Check a trade offer","Propose a trade","Get a list of random cards from tradepile (excluding specials)","Get a list of random cards from tradepile (including specials)","Check a card in the collection","Check details of a deck","See decks mastered today","See some statistics about the collection"]
for optionName in options:
index = index + 1
indexValidList.extend([options.index(optionName)])
@@ -2184,5 +2201,7 @@ if __name__ == "__main__":
maketrade()
elif chosen == "Generate Swap Station request":
swapstation()
+ elif chosen == "Generate Release Roulette comment":
+ roulette()
print("\n")
input("Press Enter to continue or Ctrl-C to exit")