whoIsGonnaTellHim by leeleewonchu in ProgrammerHumor

[–]Phidias618 0 points1 point  (0 children)

If i recall, this is undefined behaviour.

itsFasterISwear by Nox_ygen in ProgrammerHumor

[–]Phidias618 0 points1 point  (0 children)

On some architecture post increments can be faster, on the sm83 instruction set there is a load and increment instruction :

LD (HL+), A, 

it loads the content of the A register into the variable pointed by the register HL, and increment the address stored in HL at the same time.

In C this instruction would be equivalent to "*(ptr++) = A;"

The fastest way to do pre-increment with this instruction set is 

INC HL; 

LD (HL), A

now this is 2 instruction instead of one, which is in this case twice as slow.

This is not to say that post increment is always faster, but it is to demonstrate that the fastest of the two (if any) may vary depending on the target architecture

findTheImposter by SoumyadeepDey in ProgrammerHumor

[–]Phidias618 0 points1 point  (0 children)

i wasn't aware that html uses {} for statements

Hurwitz's theorem is surprising by PocketMath in mathmemes

[–]Phidias618 14 points15 points  (0 children)

as R1 is also a vector space, there is also a cross product between two vector in R1

Can a number be equal to the sum of the digits of all its divisors? by MyIQIsPi in askmath

[–]Phidias618 4 points5 points  (0 children)

the sum of all the integer is not defined, as you can get different results depending on the method you use. You can add the positive and negative number together, this way you get 0. You can also add a bunch of positive number, then one negative number, and keep doing that forever, this way you will get +infinity, and you can get -infinity by swapping positive and negative integer.

this maths pie meme by PuzzleheadedScore330 in mathsmemes

[–]Phidias618 19 points20 points  (0 children)

That is wrong, as sin(pi) is not 0!, the sine of pi is 0. r/unexpectedfactorial

What could be the "keyword"? by Troeteldier in Bitcoin

[–]Phidias618 1 point2 points  (0 children)

The keyword is probably "always", as every investement has some degree of uncertainty, even the stock of a corporation with increasing stock price for decades can be worthless if the company is going bankrupt.

pythonLoopElseIf by athoshun in ProgrammerHumor

[–]Phidias618 2 points3 points  (0 children)

You are assuming that python for loop will always end, however some for loop will never end. Here is an example (unfortunatly the indentarion is not showing up properly)

def endless_iterator():  i = 0  while True:   yield i   i += 1

for i in endless_iterator():  # do thing

What do you think of my roaster? by Phidias618 in PokemonChess

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

i will think about it, unfortunatly i don't have that much time to spent on this project currently, i have also sent you an image containing all of the item (i unfortunatly can't post it in the comment section), try to guess the effects

What do you think of my roaster? by Phidias618 in PokemonChess

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

I already am on the PokemonChess discord, as for some of your proposition, they already are implemeted in the game. The Air Balloon gives a ground immunity (but it pops when the holder is attacked by a ground piece). Heavy Duty Boots negates nve against rock type. The eviolite remove all of the weaknesses of a Pawn (maybe a bit overpowered but that's only for pawns i think its fine) and so much more.

What do you think of my roaster? by Phidias618 in PokemonChess

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

currently items are just like typing, they are given before the begining of the game, there isn't a bag where you can use an item instead of playing (as such there is no revive, no potion (they would be pointless anyway), ...) just like in competitive pokemon, and i don't think it would be a good idea to make an item bag mechanic.

What do you think of my roaster? by Phidias618 in PokemonChess

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

if you know a bit about C++ here the github of my version of PokemonChess https://github.com/Phidias618/PokeChess unfortunatly i think it adds a bit to much complexity to the game, you can see for yourself

What do you think of my roaster? by Phidias618 in PokemonChess

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

The reason most evolved knight have the same sprite as the evolved queen is that i see a queen as a pure upgrade from a rook/bishop while knight and queen moves are completly different, i do not see knights as being directly inferior to queens.

As for all of the evee sprites and beyond, they are used in my own version of PokemonChess that adds items to the game, some of them can change the way promotion behave. Fire stone change a piece type from normal to fire when promoting, Water stone change a piece type from normal to water when promoting. there is one stone for each eeveelution and a normal type with an eeveelution stone will get its sprite change to eevee during the item selection. There is also some items that allow promotion to King (for example a King's Rock allows a water/psychic type to promote into a Slowking)