#Trying to understand strange logic in my Chess game.

24 messages · Page 1 of 1 (latest)

rich kernelBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

patent glade
#

ah

#

there's your problem

#

you used chatgpt

forest spade
#

not initially. used it to try and solve the problem. realized its still a little slow

patent glade
#

little is putting it nicely heh

forest spade
#

a combination of me not knowing a ton of cpp and coming from the realms of python + chatGPT screwing my code... meh

patent glade
#

Have you considered using bitboards?

#

they are all powerful

#

and will save you

forest spade
#

yes my initial plan was to implement a basic design. make a functional game. then implement improvements such as that

patent glade
#

well

#

bitboards kinda dictate how you design stuff

#

you can't just "swap" them in whenever you want

#

(as much as I wish you could...)

forest spade
#

well. let me go ahead and do that and let's see wtf happens

#

you know. if python wasnt so slow...

whole belfry
#

First I think the issue will be somewhere with board and screen positions not being the same thing thats a big 🚩

unkempt prairie
#

Kivi is typing, prepare

#

( he won't suggest modules 100%)

whole belfry
#
                else {
                    selectedPiece->setPosition(sf::Vector2f(selectedPiece->getBoardPosition().x * 100, selectedPiece->getBoardPosition().y * 100));
                }

Check this thing on line 178 looks kinda wrong and would look like the thing you showed

whole belfry
whole belfry
rich kernelBOT
#

This question is being automatically marked as stale.
If your question has been answered, type !solved.
If your question is not answered feel free to bump the post or re-ask.
Take a look at !howto ask for tips on improving your question.