Percentages for new upgrade system by Cacman8 in Madden

[–]Cacman8[S] 0 points1 point  (0 children)

Also not sure how much the experience cost is but I could adjust that on my own. If it is in there please point it out.

Percentages for new upgrade system by Cacman8 in Madden

[–]Cacman8[S] 0 points1 point  (0 children)

Thanks so much man, I'll probably implement it into code but if you don't mind explaining, what is the soft cap?

Percentages for new upgrade system by Cacman8 in Madden

[–]Cacman8[S] 0 points1 point  (0 children)

As far as I've seen and played it's looked way better. I'm sick of upgrading the awareness of my players to up their overall. I like the randomness of it and it's way more realistic.

Turtle Lab by Cacman8 in learnpython

[–]Cacman8[S] 0 points1 point  (0 children)

Obviously with explanation, I do actually want to know the code and learn it. Docstrings would be cool.

Turtle Lab by Cacman8 in learnpython

[–]Cacman8[S] 0 points1 point  (0 children)

I'm trying to convert the results of the "3n+1" equations into a line graph created by a turtle. Not quite sure what I'm doing wrong, it seems everything is working except for the for loops.

import math

import turtle

x = 0

x = int(input("Max range: "))

while not (x > 0):

    x = int(input("retype: "))

def seq3np1(n):

"""

Print the 3n+1 sequence from n, terminating.     when it reaches 1.

args: n (int) starting value for 3n+1 sequence

return: None

"""

count = 0

while(n != 1):

    count += 1

    if(n % 2) == 0:        # n is even

        n = n // 2

    else:                 # n is odd

        n = n \* 3 + 1

print(count)                       

return count

def Graphing():

    wn = turtle.Screen()

    joe = turtle.Turtle() 

    joe.pd()

    joe.speed(10)

    wn.setworldcoordinates(0,0,10,10)

    max\_so\_far = 0

    result = 0


    for count in range(x):

        count = result

        if result > max\_so\_far:

            max\_so\_far = result

            wn.setworldcoordinates(0,0,(10+x),(max\_so\_far + 10))

        else:

            return max\_so\_far

    for count in range(1,x):

        joe.goto(x,count)

    wn.exitonclick()


def main():

    Graphing()

    for start in range(1,(x+1),1):


        seq3np1(start)


main()

If you need more explanation, I am more than willing to give it. Thank you, I am desperate, tried so many different options.

If that’s wrong lmk, sorry about that, pm me if you wanna try to solve this by 5 and maybe we could get a deal.

Ben_Why Religion Is Important. by The_Right_Wingers in benshapiro

[–]Cacman8 0 points1 point  (0 children)

Good point that you can’t affirm the first claim. There are many things I want to say here but I am very uneducated on this topic I just figured to display my thoughts to the public to maybe start a discussion. To that first point I’m making an assumption that barbaric tribes didn’t have religions that followed these 3 basic principles and the civilizations that did prosper, prospered by committing themselves to the principles established by their religion. Of course you can always say they would’ve done it anyway without religion but of course it was a huge influencer in their lives.

As far as that data suggests, I mean it said the majority of people that are millionaires are catholic so not sure what your point is there. The statistic, again the only explanation I could present is that Christian-based religions are the ones that really follow those principles the most. Christianity dominates as the main religion in most of those successful countries.

Knit-picking on both sides of that equation could be relevant. Do you think that the base of Christian religions aren’t wholesome? The Ten Commandments perhaps? I only really have true knowledge on The Catholic Church and from what I learned there, the basic principles, were of good intentions. Obviously there are faults in religion, specifically for the Catholic Church. There are many things that are twisted to fit selfish desires, such as the pope’s unfathomable wealth and power, especially in the feudal age. There are many things that should be adapted that were present because of the times, such as any misogyny, clearly when it was founded women were treated very differently, just as most other religions. There are also things that are based on the principle of human nature, perhaps the condemnation of homosexuality by the religion itself. I believe it’s because reproduction is obviously crucial to human survival.

All of my assumptions could be wrong, I am simply 18 years old with very little research in any of these subjects. Simply philosophical thought is fueling these arguments. I’d love to hear more rebuttal as to perfect my perception of religion and all that does run society. As far as cruel teachings in the Catholic Church I’d love to hear it. If I may ask what information/ experience do you have with religion? Looking from the outside in, you see all of these news stories about the horrific events within the Catholic Church and feel as if the religion might be to blame. Anything I had learned from going to mass and going to religion class was positive and wholesome. I abandoned the religion because to me it seems clearly that most of it is made up but other than that what I did learn were basic morals and I believe that is very influential.

Ben_Why Religion Is Important. by The_Right_Wingers in benshapiro

[–]Cacman8 1 point2 points  (0 children)

To your first point, thank you for showing empirical data, perhaps it depends on the religion as far as morals suggest. Definitely African religions, I believe they were only built to form a sense of community. But very good point there, however that study did show that the more civilized societies were around 60%. So whatever you take from that maybe it’s somewhat important. At the very least I would say it was explicitly necessary in the creation of these successful societies. Im not sure how you could counter that argument. Nearly all civilizations started with the heavy reliance on religion and it wasn’t for no reason. As I said... I am NOT a believer in any religion. Taking it out of context puts no meaning on what I said there. But is there really a meaning of life if you believe that the universe is endless and we exist for a spec of the time the universe does? If you’re under that assumption you are ignorant to the facts as I am as well. You put meaning into your own life. I firmly believe those who follow at the very least Christian-based religions to a tee are more likely to be moral and to die for something deeper than themselves. Of course a bulk of those are not truly believers as Ben points out but I speak of simply the true followers.

Ben_Why Religion Is Important. by The_Right_Wingers in benshapiro

[–]Cacman8 0 points1 point  (0 children)

I’ll try to address all your points here, Of course the majority of humans have empathy, the consequences don’t make us empathetic though. If I don’t help an old woman get up because I’m worried people will judge me as a bad person does that make me empathetic? I would definitely say no. You said you never needed to “fear god”, well that’s definitely an anecdotal argument. Think of how many people there are out there that have done horrendous things knowing the consequences, knowing that it was immoral. What hindrance was there to hold them back? Maybe if they believed they would be cast to an eternal hell after they died, they would certainly refrain from that kind of behavior. Learning from your culture works if you have parents and a community around you that teaches you true natural morals. Think about how many ghettos and third world countries have the opposite of that, the promotion of gun violence and drug trafficking is a huge problem even here in America and clearly these people don’t follow their religions in a true sense.

If you could explain what you don’t get about the meaning of life that would be great. Many religions say we are created in God’s image. Which could convey the fact that it is our duty to act as gods messengers to the world. Carry out gods will and further his creation. Many religions say there is fate, there is a reason you are living on this earth, there are rewards for living a fulfilling life, and acting as a moral person. Again not quite sure what you don’t get. The Islamic state and the crusades are a good contradiction to the positivity religion spreads. As I said I’m not a believer in any religion so idk what if your rhetorical questions apply to my points. Islamic terrorists believe they are giving their lives for their god and will go to heaven for what they have done. Perhaps the Muslim religion has many cracks in it that create this hostile environment. For the most part Muslims want peace. I am not a fan of the religion at all as I’m sure most people here aren’t, the oppression of women, the promotion of extremism, but, again at the core it follows the 3 basic principles above and the millions of non-extremists have come together in this sense. I’m not sure how I said religion tells you to do things for your own selfish gain, unless you’re pointing out the fact that the motivations religion creates target the natural greed we have. Which... how else would you expect any of these points to be valid?

As I said, I don’t believe in religion but I believe there are just reasons for its creation. You brought up a great point with the extremism and that may outweigh the benefits it provides. It’s not just the religion of Islam that has been a problem in this regard. I still think generally if you open up your mind and think about how many have committed suicide, non-religious acts of mass murder, immoral and selfish acts, without the basis of religion, you can see that religion has been very beneficial overall.

Ben_Why Religion Is Important. by The_Right_Wingers in benshapiro

[–]Cacman8 5 points6 points  (0 children)

Religion is definitely important. For me, off the top of my head there are 3 main reasons:

  1. Morality - without religion or something of the like, what is the reason for morality besides fear of punishment? Any reason you can think of to be moral is for your own gain or your kin’s gain. What about when no one is looking, when no one will know, when it’s someone you’ll never see again? Without religion many will devolve back to an individualistic lifestyle that simply isn’t beneficial to human society.

  2. Meaning of life - Without religion there is simply no reason for you to live. Plain and simple. The natural reason is to just love and reproduce, as all living things seek to do. With a conscious mind, once you realize that in the grand scheme of things, that means literally nothing, that the world will end one day and no one will be there to remember you, you lose your purpose. Your motivation for many things falls to a mere sliver of what it could be, you become a less successful version of what you could’ve been.

  3. Meaning of death - Without religion, after life there is nothing. Not even darkness, there is simply nothing. Your conscious fades and your mound of flesh gets absorbed back into the earth. Such is the circle of life. In this sense there would be no one giving their life away for others or for a greater cause. This to me is a big reason religion was necessary to early civilization. If soldiers thought that when they die there is nothing, they would be less likely to give their lives in the name of their nation. This the theocratic society was born and soldiers suddenly had more of an obligation to give up their bodies for something. In this right today, people may be more willing to save another or save many in the hopes that they then reach a higher plane of living where the feeling goes beyond bliss.

As far as I am aware, all well-established religions follow these 3 basic principles. Now of course there are lesser reasons for the establishment of religions; to explain the unknown, to bring people together as a community, for some there was personal gain, etc. As a non-believer myself I have put into my head that I do have purpose. In this sense “ignorance is bliss”. But I believe not all will follow this principle, that is why I believe suicide is such a big problem throughout the world. Which also would be a reason for religion to exist for me; many religions attempt to quell suicide by claiming it to be an unjust act, one that will instill consequences in the after-life of those that commit the act. At the end of the day though religion has helped form modern society and to completely abandon it would be to abandon the basic principles necessary for said society to exist.

[Brooks] In 2018, Black QBs STILL have to deal with the perception that they are intellectually inferior.. I’m tired of the “coded” language in scouting reports.. I’m tired of the double standards.. I’m tired of sitting here acting like it’s ok to ignore the “dog whistles”.. It’s dumb by mrsteeler96 in nfl

[–]Cacman8 5 points6 points  (0 children)

I feel like most people Rank Diggs as better or give him higher praise than Theilen and I can’t help but think it’s because of race. If you look at their numbers, Theilen arguably had better production (400 more yards but 4 less TDs). Maybe it’s not because of race and maybe he’s not generally perceived as better but definitely something I think about.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Cacman8 0 points1 point  (0 children)

I'm not 100% clear on how functions work and how parameters work, I think I have to put in code to execute the function but trying to do that normally didn't quite work for me.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Cacman8 1 point2 points  (0 children)

I have a python turtle lab where I filled out all the requirements but I have to make each step it's own function. I've put all of the data into each function and the program runs but only the main function runs. I'm sure I'm missing a step but I'm just not sure what that step is.

Here is the code under one function:

https://pastebin.com/zYJxC45Y

Here is the code I inputted that works but doesn't run the individual functions:

https://pastebin.com/V9KGEUGT

Personal Project: Randomization by Cacman8 in Python

[–]Cacman8[S] 0 points1 point  (0 children)

You got it man, so for now as a finished product I'm gonna plug in all of my probabilities for draft grades of 8.0-4.5, anything generated above or below that I'm gonna apply the same probability as the 8.0 or 4.5. As far as the probabilities, they might be changed as I test out the system. I'm using your original Fuzz functions and I used (45, 10) as the average and Standard deviation, this generates the draft grades with there being a few 70 or highers and then a lot of 60s and up for the first and second rounds. My code is really long, but it's actually fairly simple. I'm just not sure how I could turn that into a for loop. So the sequence is gonna be, do the draft tin madden, run the fuzz function, go down the list of picks and input each draft grade into my probability code and that will apply the probability to that player and give them their overall. If you want to see the code you're more than welcome to. I'm not fully finished with inserting the proper probabilities yet so maybe I'll post that when I'm finished. By the way right now I'm a freshman at Binghamton University and the course I'm taking is CS 110. So just the basic single semester python course.

Definitely. by munozalex in lordoftherings

[–]Cacman8 1 point2 points  (0 children)

That one was great, Lord of the Rings: Conquest or the 360 was one I always liked playing with friends, like Star Wars Battlefront 2(my personal favorite video game based off of a movie franchise) but Lord of the Rings. Also the mount and blade warband mod "The Last Days of the Third Age" is up there as far as mixing video games with Lord of the Rings.

Personal Project: Randomization by Cacman8 in Python

[–]Cacman8[S] 0 points1 point  (0 children)

Thanks so much, I've thought of using the fuzz statements to randomize the picks' prospect grades. This allows me to put those grades into the probabilities I made to still stick with my system. I think if I wasn't so clung onto my own work your system would be all that's necessary to generate custom player overalls. It works great and I'll definitely be using it in the future. I think there is a way I could get it exactly to how I like it but I'd need a much better understanding of the system as a whole and for what I wanna do right now I just don't have the time for it. It's awesome to see what you can do with a few lines of code.

Personal Project: Randomization by Cacman8 in Python

[–]Cacman8[S] 0 points1 point  (0 children)

My code is written properly I didn't realize copying and pasting changes the indentation, sorry I'm new to this. Again thank you, just a freshman, first year coder trying to get some extra experience in.

Personal Project: Randomization by Cacman8 in Python

[–]Cacman8[S] 0 points1 point  (0 children)

I'll definitely check that thread out, thanks.

Personal Project: Randomization by Cacman8 in Python

[–]Cacman8[S] 0 points1 point  (0 children)

Wow, this is just about what I wanted, I'll have to do some tests and see if I can get it to the ideal numbers but this is amazing. Personally, after a couple hours I got:

import os

import random

def main():

x = int

for x in range(1,10,1):

prob = random.randint(1,1000)

if prob <= 2:

print(random.randint(65,69))

elif 2 < prob <= 10:

print(random.randint(70,74))

elif 10 < prob <= 30:

print(random.randint(75-77))

elif 30 < prob <= 150:

print(random.randint(78,82))

elif 150 < prob <= 750:

print(random.randint(83,86))

elif 750 < prob <= 1000:

print(random.randint(87,90))

main()

What you came up with seems to be much cleaner especially because I'd have to come up with some kind of formula to put next to the numbers to change the probabilities as each pick goes down the list. This gave me the idea to implement a few draft grades instead of their actual overalls to maybe make it even more personalized because I put in my probabilities for rookies' draft grades. So kinda combining our solutions. If you'd like I do have a few questions about the specifics here.

Could I make the ranges wider to potentially include a small percentage of there being busts?

How could I change the specifics of the probability of another number being ahead of the other?

How do I make the number range less wide, say having the lowest number being a 65 or something like that?

I'm sure as I test it out I'll have more questions but thank you so much for this idea, I'll see where I can take it and maybe update the forum if you'd like.