Amateur Programmer Thread

In college the most challenging task I (amateur programmer) had to do was delete a node from a "binary search tree".

Can dodge chance be negative? Can it be greater than 100%?

This code is very bad

Do you mean one of those specialized ones like a red-black tree or a normal binary tree?

It was just a sorted binary tree lol.

1 Like

Youll want to sanity check your dodge chance. As written, the value can be negative. Your function is also prone to overflowing

You're not allowed to post in this threa.d

2 Likes

Your dodge chance is also integer only?

No, it's not prone to anything as I am the one writing the code. Sorry.

Yes, if you'd played the game you would understand.

If you write a debuff that halves dodge chance or something you might find some errors on odd numbers

That makes no sense. There would be no errors.

Ill invoice you at my standard rate later

1 Like

There certainly could be

No there couldn't. It would work just fine. In addition, We are not going to "Write" that "Debuff" - it's not in our vision for the game.

It may work, but the number might not be what the player expects it to be!

Please be nicer to me

The player should not have expectations, and should accept what is given to them as the intended gameplay experience.
Any experienced and literate game consumer would know that. A game is a museum.

my thread is being griefed

1 Like

I'm amateur programming currently.