Skip to content

Is there a way to return next possible moves with their scores efficiently? #8

@kirarpit

Description

@kirarpit

Hey, is there an efficient way to return the scores of next possible moves just the way it's done on the website under "Show Solution"?

One way is to call the entire program 7 times with the updated strings but that's making it slower.
What I believe is that we can return that in a single call but I'm not able to figure it out how since I'm not very familiar with the bitmap.

Any help would be highly appreciated!
Thanks!

UPDATE:
I am able to figure out how the bit masking is working, thanks to your blog post. I can now modify the code to return all possible moves with their scores but it's still going to be quite slow for initial moves specifically.

I read that you precomputed the opening data for the standard 6X7 board on the server which is why you're able to return results that fast. Can you please provide some information regarding how I could do the same on my system?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions