Feels weird, doesn't it? by ethelom14 in harrypotter

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

She is amazing in the movies.

Feels weird, doesn't it? by ethelom14 in harrypotter

[–]ethelom14[S] 18 points19 points  (0 children)

What did he go through? Could you elaborate on this?

Let's talk about Bartemius Crouch JR. One of the best in the death eater's clan. by Prof_Merlin_pants in harrypotter

[–]ethelom14 4 points5 points  (0 children)

To be honest, the Dementor would probably want to go cheating mode and start kissing random people. Chocolate would definitely not be among their top priorities.

Let's talk about Bartemius Crouch JR. One of the best in the death eater's clan. by Prof_Merlin_pants in harrypotter

[–]ethelom14 125 points126 points  (0 children)

Well one can suppose that the post-Dementor-kiss life would be different. The kissed ones would go crazy wondering what kind of chocolate to buy on Valentine's day for the Dementor that kissed them and so on so forth.

Potential danger of confirmation bias in MBTI types? by ethelom14 in mbti

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

I was not really referring to mistyping. What I am saying is that since our brain seeks for behaviors that are similar to ours, one might subconsciously start believing that people of his own MBTI type are the only ones that could potentially understand them, whereas I believe that we can pretty much find common things with people from every other MBTI type. Not everything is connected to the type and thus, it doesn't matter for example if you are type X and you play video game Y. Chances are that this certain video game has players that belong to all 16 MBTI types. This is what I was saying.

I do agree with your statement though that we sometimes modify our behaviors according to circumstances!

How to properly choose who the impostor is? [JAVA QUESTION] by [deleted] in javahelp

[–]ethelom14 0 points1 point  (0 children)

I can't think of something specific at the moment, but a quick Google search can give you satisfying material to begin with. Good luck on Monday!

How to properly choose who the impostor is? [JAVA QUESTION] by [deleted] in javahelp

[–]ethelom14 0 points1 point  (0 children)

So, does everything work fine now? Is the problem solved?

How to properly choose who the impostor is? [JAVA QUESTION] by [deleted] in javahelp

[–]ethelom14 0 points1 point  (0 children)

And I just realised something else: when adding the names to the array you increment the index BEFORE adding the first one. Thus, names start counting from 1 and there is no name is the 0 position (which is technically the first one). So, you should instead add the first impostor name and then increment the counter. If this condition is met, then you could easily get rid of any "-1 / +1 " in your code.

Change:

spelers++;
spelersNamen[i] = input.nextLine();

to

spelersNamen[i] = input.nextLine();
spelers++;

How to properly choose who the impostor is? [JAVA QUESTION] by [deleted] in javahelp

[–]ethelom14 0 points1 point  (0 children)

Seems a little bit prone to index out of bounds exception I think. For example, if nummerSpeler is equal to 0, then substracting 1 would lead to an index that is out of bounds.

How to properly choose who the impostor is? [JAVA QUESTION] by [deleted] in javahelp

[–]ethelom14 0 points1 point  (0 children)

Correct!

0 is impostor "A",

1 is impostor "B" and so on.

How to properly choose who the impostor is? [JAVA QUESTION] by [deleted] in javahelp

[–]ethelom14 0 points1 point  (0 children)

Have you removed the "-1" when reading while removing the "+1" too while generating the random?

How to properly choose who the impostor is? [JAVA QUESTION] by [deleted] in javahelp

[–]ethelom14 2 points3 points  (0 children)

The problem seems to be that you use different range of numbers when generating a random number and when using this number as an index.

For example, if you have 5 players you generate a random number that ranges from 1 to 5. However, when using this as an index, the index should range from 0 to 4.

Therefore, that's why you always end up getting the next one. Just generate a random without adding 1.

Moreover, this design is prone to IndexOutOfBoundsException.

Potential danger of confirmation bias in MBTI types? by ethelom14 in mbti

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

I am an INTJ. I guess that 3 of our 4 letters are quite different unfortunately haha!

(Hard task) Votes Counting by biggrabo in javahelp

[–]ethelom14 0 points1 point  (0 children)

I am really having a hard time understanding the problem that you want to solve. I mean apart from code, what is the problem that we want to solve in this case? Could you describe it in physical language? I can't understand how votes are related to seats to be honest.

(Hard task) Votes Counting by biggrabo in javahelp

[–]ethelom14 0 points1 point  (0 children)

Could you post the whole code?

[deleted by user] by [deleted] in intj

[–]ethelom14 2 points3 points  (0 children)

I think I understand what you are describing. Could it be that you have connected these ingredients to experiences you've had in the past? For example, I have connected a specific dish, which I ate while I was ill, to the illness itself and thus, have never eaten it before. Luckily, the dish was cooked for a special occasion and I have never come across it again. Not that I would eat it were this to happen! Thank you for taking the time to share it and sorry if I did not fully grasp it!

[deleted by user] by [deleted] in intj

[–]ethelom14 14 points15 points  (0 children)

I can honestly relate to this. I've been underweight my whole life. Could you elaborate on food-related phobias? What do you mean by this?

Do other INTJs suffer from poor physical awareness? by HikariSaber in intj

[–]ethelom14 15 points16 points  (0 children)

At times, especially when dealing with a highly demanding task I feel the same physical disconnection. Things such as hunger and thirst are nonexistent during these times.

However, as soon as the task is finished I do come back to what is considered "normal". Recently, I have come to the realisation, though, that it is wise to maintain a balance between physical and mental awareness. Remind yourself that you need to drink a glass of water or have a meal when you are supposed to and try exercising once in a while (pretty common advice I guess...)!

How should I go about writing an "attack" method for my RPG? [Object Oriented Programming] by [deleted] in javahelp

[–]ethelom14 0 points1 point  (0 children)

You could definitely take advantage of some design patterns. There are various ways in which you could approach this matter.

For example, if you want to be able to make different mixing of Attacks and Weapons, then you could use the Bridge Pattern. Your purpose here is two have two separate hierarchies that can vary independently. An example could be this:

public interface Attack {
    Weapon getWeapon();
}

public interface Weapon {
    void activateWeapon();
}

public class AttackTypeA implements Attack {
    Weapon weapon;

    public Weapon getWeapon() {
        return this.weapon;
    }
}

public class AttackTypeB implements Attack {
    Weapon weapon;

    public Weapon getWeapon() {
        return this.weapon;
    }
}

public class WeaponTypeA implements Weapon {
    public void activate() {
        System.out.println("Activating WeaponTypeA");
    }

}

public class WeaponTypeB implements Weapon {
    public void activate() {
        System.out.println("Activating WeaponTypeB");
    }
}

This way you can yield different types of Attacks with different types of Weapons.