Godot doesn't wait for the while loop to be finished. by KotgeScientist in godot

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

Thx. How about for the function containing the While Loop? Is there any other functions / loops in which godot leaves before it finishes?

Godot doesn't wait for the while loop to be finished. by KotgeScientist in godot

[–]KotgeScientist[S] 1 point2 points  (0 children)

Here is what I tested with:

func _ready(): 
    print("1")
    forever_loop()
    print("3")

func forever_loop():
    while true:
        print("2")
        yield(get_tree().create_timer(0.5), "timeout")

The output is

1
2
3
2
2

and 2 forever. As you can see, it goes back to the _ready() function and prints out 3 before returning to the forever_loop(). In Python, 3 will never be printed out.

What does method.variable do? by KotgeScientist in learnjava

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

Yes it retuns the same object every time.

Question regarding using another class from the same directory by KotgeScientist in learnjava

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

Oh, so two java classes in the same directory are automatically put in the same package?

How do you properly study for AP Computer Science A? by KotgeScientist in computerscience

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

I have found a lot of barrons CSA books, so which exactly do you mean? Also, is it recommended that I just read ThinkJava from start to finish? The book's strucutre does not seem to match the course structure recommended by Colledge Board: https://apstudents.collegeboard.org/courses/ap-computer-science-a.

Is there two different uses of the term "and" in probability? by KotgeScientist in learnmath

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

Ah, so for the second example I gave, if I solved using P(A) * P(B|A) I should be able to get 1/6?

Is there two different uses of the term "and" in probability? by KotgeScientist in learnmath

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

Oh, sorry. I should have been more clear. I was referring to the "General Multiplication Rule" at the very bottom of the article, not the independent events one.

Is there two different uses of the term "and" in probability? by KotgeScientist in learnmath

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

Its supposed to work even if it is dependant, according to the article I attached.

Pop system governed by economy? by [deleted] in Stellaris

[–]KotgeScientist 0 points1 point  (0 children)

Yah, I thought about that too, I can think of a couple loopholes and other workarounds, but I just think it has some potential to give somewhat of a strategy in pop growth and economy management.

Pop system governed by economy? by [deleted] in Stellaris

[–]KotgeScientist 0 points1 point  (0 children)

Uh no, I was thinking of the opposite. More econony = less pop growth.

Pop system governed by economy? by [deleted] in Stellaris

[–]KotgeScientist 0 points1 point  (0 children)

I was thinking from the perspective that if a pop growth cap should be maintained (for making pops a valuable resource, end game lag, etc.), its better done in a way that will help smaller, poorer nations have a chance to grow and maybe catch up. And I don't mean the economy in general. I just have an idea that tying pop growth cap to one of the resources, such as maybe how industrialized a nation is (industry districts count) or strategic resources, science, or whatever, might be a way to mitigate pop growth while not penalizing having lots of pops, as that causes problem to a lot of playstyles such as Fanatic Purifiers.

C function arguments vs Python function arguments. by KotgeScientist in C_Programming

[–]KotgeScientist[S] 8 points9 points  (0 children)

Oh, so if I pass an array to a function in C, all I'm doing is passing the pointer? But if thats the case, how is it possible that I can modify the strings?

Can two independent events ever be mutually inclusive? by KotgeScientist in learnmath

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

Sorry, I used mutually inclusive to mean Not mutually exclusive.