The Codeground

Abom = [range(6, 12), range(7, 14), range(8, 16), range(10, 19), range(11, 21)] Anti = [range(3, 6), range(4, 7), range(4, 8), range(5, 9), range(5, 10)] Arb = [range(4, 9), range(5, 11), range(6, 12), range(6, 14), range(7, 15)] BH = [range(5, 11), range(6, 13), range(7, 14), range(7, 16), range(8, 17)] Cru = [range(6, 13), range(7, 15), range(8, 17), range(9, 18), range(10, 20)] Flag = [range(3, 7), range(4, 8), range(4, 9), range(5, 11), range(5, 12)] HWM = [range(5, 11), range(6, 13), range(7, 14), range(8, 16), range(9, 17)] HM = [range(4, 8), range(5, 9), range(6, 11), range(6, 12), range(7, 14)] Lep = [range(8, 17), range(9, 19), range(10, 22), range(12, 24), range(13, 27)] MaA = [range(5, 10), range(6, 11), range(7, 13), range(7, 14), range(8, 15)] SB = [range(5, 11), range(6, 13), range(7, 15), range(8, 17), range(9, 19)] import math hero = input("Please enter the hero of interest [Abom, Anti, Arb, BH, Cru, Flag, GR, Helli, HWM, HM, Jest, Lep, MaA, Musk, Occ, PD, SB, Vest] or q to quit:\n") while hero != "q": weapon_lvl = int(input("Please enter the weapon level of interest [1, 2, 3, 4, 5]:\n")) crit = float(input("Please enter a crit value between 0 and 1:\n")) damage_mod = float(input("Please enter the final damage modifier according to the following formula: (ability mod) * (sum of trinkets, quirks, buffs):\n")) multiplier = 1 + damage_mod if hero == "Abom": index = Abom elif hero == "Anti": index = Anti elif hero == "Arb" or hero == "GR" or hero =="Musk" or hero == "Vest": index = Arb elif hero == "BH": index = BH elif hero == "Cru" or hero == "Helli": index = Cru elif hero == "Flag": index = Flag elif hero == "HWM": index = HWM elif hero == "HM" or hero == "Jest" or hero == "Occ" or hero == "PD": index = HM elif hero == "Lep": index = Lep elif hero == "MaA": index = MaA elif hero == "SB": index = SB damage = index[weapon_lvl-1] expected_damage = round(damage[-1] * multiplier * 1.5) * crit for i in damage: expected_damage = expected_damage + (math.ceil(i*multiplier) * ((1-crit)/len(damage))) print("When it comes to a(n)", hero, "with level", weapon_lvl, "weapons:") print("The expected damage given", str(crit * 100) + "%", "crit and a", multiplier, "damage multiplier is {:.2f}.".format(expected_damage)) print() hero = input("Please enter the hero of interest [Abom, Anti, Arb, BH, Cru, Flag, GR, Helli, HWM, HM, Jest, Lep, MaA, Musk, Occ, PD, SB, Vest] or q to quit:\n")
Hint: Remember to include output statements in your code, such as print, console.log, printf, fmt.Println() or System.out.println.

Benefits of TheCodeground Online IDE

Multi-Language Support

TheCodeground Online IDE supports C++, Java, Node.js, Python, and more, making it an incredibly versatile tool for diverse coding needs. This extensive language support allows developers to work on different projects within a single platform.

Real-Time Collaboration

Our real-time collaboration feature enables multiple developers to work on the same project simultaneously, enhancing teamwork and productivity. This feature is particularly beneficial for remote teams and pair programming sessions.

User-Friendly Interface

Designed with a clean and intuitive interface, TheCodeground Online IDE simplifies coding and debugging processes, making it accessible for users of all skill levels. The ease of use and clear navigation ensure a smooth coding experience.

Instant Code Execution

Experience fast and efficient code execution with immediate feedback in the integrated terminal. This feature helps streamline the development process, allowing developers to quickly test and debug their code.

Free to Use

Enjoy the full range of features at no cost. TheCodeground Online IDE is completely free, providing a valuable resource for developers without any subscription fees. This makes it an ideal choice for students, hobbyists, and professionals alike.

Cloud-Based Platform

As a cloud-based IDE, TheCodeground allows you to access your projects from anywhere, at any time. This flexibility ensures that you can continue coding without being tied to a specific device or location.

Customizable Environment

Tailor the IDE to your preferences with customizable themes, layouts, and extensions. This personalization ensures a comfortable and productive coding environment.

Why Choose TheCodeground Over Other Online IDEs?

TheCodeground Online IDE stands out from the competition with its comprehensive feature set, ease of use, and cost-effectiveness. Unlike many other online IDEs that require subscriptions or offer limited free plans, TheCodeground provides all its features for free. Our multi-language support, real-time collaboration, and advanced debugging tools ensure that you have everything you need for effective development. Additionally, our user-friendly interface and customizable environment make coding a pleasant experience, regardless of your expertise level. Choose TheCodeground Online IDE for a seamless, efficient, and enjoyable coding experience.

×
Ground visible to everyone?
No
Yes
Ground editable by everyone?
No
Yes
Get a new ground?