"""This is a simple reward function for the Finenv environment. It developes a sentence based in the reward value. Positive rewards generate encouraging messages, negative rewards generate constructive feedback, and zero rewards generate neutral prompts to motivate improvement.""" import random def reward_message(num:float) -> str: positive_msgs = [ f"Awesome work! You scored {num}, keep pushing forward!", f"Fantastic! {num} shows your great progress!", f"Great going! {num} is a strong positive number!", f"Brilliant! You achieved {num}, success is yours!", f"Excellent! {num} reflects your hard work!", f"Superb! A score of {num} is impressive!", f"Keep it up! {num} is a great result!", f"Well done! {num} shows you're improving!", f"Amazing! {num} is a fantastic score!", f"Outstanding! {num} proves your capability!", f"Nice work! {num} is a positive step!", f"Incredible! {num} shows your potential!", f"Strong performance! {num} looks great!", f"You're doing great! {num} is excellent!", f"Fantastic effort! {num} is rewarding!", f"Impressive! {num} shows growth!", f"Great job! {num} is a win!", f"Positive vibes! {num} is awesome!", f"Keep shining! {num} is brilliant!", f"Top work! {num} is fantastic!", f"Excellent progress with {num}!", f"Winning moment! {num} looks great!", f"You nailed it with {num}!", f"{num} is a sign of success!", f"Keep rising! {num} is strong!", f"That’s a solid {num}!", f"You're on fire with {num}!", f"Powerful result: {num}!", f"You're unstoppable at {num}!", f"Success shines in {num}!", f"{num} is a proud achievement!", f"Great energy with {num}!", f"Keep winning with {num}!", f"Victory feels like {num}!", f"Big win: {num}!", f"You're excelling at {num}!", f"That’s impressive: {num}!", f"Keep thriving with {num}!", f"{num} is a milestone!", f"Wonderful result: {num}!", f"You're progressing with {num}!", f"Sharp performance: {num}!", f"Keep growing: {num}!", f"That’s a boost: {num}!", f"You're achieving big with {num}!", f"Great momentum: {num}!", f"That’s a bright {num}!", f"You’re crushing it with {num}!", f"Keep soaring: {num}!", f"Fantastic number: {num}!" ] zero_msgs = [ "Your score is 0, try to move forward.", "0 means no progress, take action.", "You got 0, push for improvement.", "0 feels neutral, aim higher.", "Stuck at 0, time to grow.", "0 is just a starting point.", "Move ahead from 0.", "0 shows no change, act now.", "Break the 0 barrier.", "0 needs momentum.", "Rise above 0.", "0 is not the end.", "Push beyond 0.", "0 needs effort.", "Start fresh from 0.", "0 is a reset point.", "Climb up from 0.", "0 is a pause, not stop.", "Turn 0 into progress.", "0 needs a push.", "Go beyond 0.", "0 is neutral ground.", "Advance from 0.", "0 needs action.", "Step up from 0.", "0 is just beginning.", "Grow past 0.", "0 needs direction.", "Break out of 0.", "0 is waiting for effort.", "Push ahead from 0.", "0 is your base.", "Move upward from 0.", "0 needs energy.", "Turn 0 positive.", "0 is not enough.", "Climb higher than 0.", "0 needs change.", "Start moving from 0.", "0 is temporary.", "Build from 0.", "0 needs drive.", "Progress after 0.", "0 is your launch point.", "0 needs momentum.", "Don't stay at 0.", "0 is a fresh start.", "Act beyond 0.", "0 needs growth.", "Move forward from 0." ] if num == 0: return random.choice(zero_msgs) elif num > 0: return random.choice(positive_msgs)