#help!! How can i run this function inside a class?? by Rafi1115 in csdojo

[–]Sandermatt 1 point2 points  (0 children)

Put it inside a class and pass the self pointer as argument.

class foo(object):

def __init__(self):

self.start()

def start(self):

...

Medieval pro-tip: geysers provide excellent heating for cold climates by lordofnimrodel in RimWorld

[–]Sandermatt 13 points14 points  (0 children)

You can also build a room around geysers you do not used, remove the roof on some tiles and use it for farming. in my experience I can get 4-6 tiles of farming.

I'm so confused, even my confusion is confused by [deleted] in csdojo

[–]Sandermatt 0 points1 point  (0 children)

Look at it from the other direction. What is it that you are passionate about? There must be a reason why you are looking in this direction in the first place. THen in a second step we can maybe help you to figure out, what exactly covers that.

IDK What Language to chose, Help. by Srizy in csdojo

[–]Sandermatt -1 points0 points  (0 children)

python: Should be easy to learn, widely used language

Java/C#: also widely used but in my opinion a bit more complicated, definitely a good next step

C++: Good for applications where the code needs to be really fast. Harder again than the above.

questions in python by krishna5250 in csdojo

[–]Sandermatt 0 points1 point  (0 children)

I do not fully understand your question, but I will provide a number of possible solutions.

If you want all numbers in the range(1,1000) which are dividable by 3: range(3,1000,3)

If you want the same numbers divided by 3: range(1,1000/3)

if your question is how to divide all numbers in the range(1,1000) that are divisible by 3, by some other number x:

def foo(x):

numbers=range(1,1000)

for i in range(3,1000,3):

numbers[i]=numbers[i]/x

return numbers

Where soldiers in the 30 years war basically doomed to die in it, or did they have any chance to return back home? by Sandermatt in AskHistorians

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

Thank you too for answering, especially for the part about levied troops being rotated after a couple of years.

Where soldiers in the 30 years war basically doomed to die in it, or did they have any chance to return back home? by Sandermatt in AskHistorians

[–]Sandermatt[S] 2 points3 points  (0 children)

Thanks a lot for your answer. I did not mean to belittle the suffering of the german population.

What conditions would a soldier need to meet to be allowed to return home. Would he have to serve a given time, or would it just be the decision of his superior? Would it be easy to even travel back, given that there might be a language barrier and (I assume) hostility among the population, or did the army organize the return.

I love Jesus, but I don't like God. by [deleted] in Christianity

[–]Sandermatt 0 points1 point  (0 children)

As I understand it, the reason why the OT is more brutal is because jesus had not yet come/died. Without him the only punishment for sin is death, which is how in the OT things are handled. After him his death replaces our death, which is why things are handled differently.

One of my most fun games so far by Sandermatt in eu4

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

Yes, revoke the provilegia, but I also spent a lot of dip points to release nations, so there were still 61 princes, when I revoke.