From 5354ff716a6ebc21596eb5c7732936375eebae8f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 18:33:07 +0000 Subject: [PATCH] Add non-interactive draw generation script Co-authored-by: Floriansylvain <31168423+Floriansylvain@users.noreply.github.com> --- generate_draw.py | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 generate_draw.py diff --git a/generate_draw.py b/generate_draw.py new file mode 100644 index 0000000..0e793dc --- /dev/null +++ b/generate_draw.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python3 +""" +Simple script to generate and display a single EuroMillions draw result. +This is a non-interactive version for automated draw generation. +""" + +from fdj_slayer.draw import Draw +from fdj_slayer.weather import Weather +from fdj_slayer.constants import MAX_NUMBER, MAX_STAR, NUMBER_OF_NUMBERS, NUMBER_OF_STARS + + +def generate_single_draw(): + """Generate and display a single draw without interactive prompts""" + print("\n" + "="*60) + print("FDJ SLAYER - EuroMillions Draw Generator") + print("="*60) + + weather = Weather() + draw_generator = Draw(weather) + + print("\nGenerating a random EuroMillions draw...") + print("Using enhanced entropy sources for maximum randomness...\n") + + # Generate a single draw + draws = draw_generator.generate_draws(1) + + if draws: + result = draws[0] + print("="*60) + print("YOUR EUROMILLIONS DRAW RESULT") + print("="*60) + print(f"\nšŸŽ± Numbers: {result['numbers']}") + print(f"⭐ Stars: {result['stars']}") + print(f"\nšŸ“Š Seed used: {result['seed']}") + print("\n" + "="*60) + print("Good luck with your draw!") + print("="*60) + return result + else: + print("Error: Could not generate draw") + return None + + +if __name__ == "__main__": + generate_single_draw()