Skip to content

How to get around need for constant in MoveList creation #25

@aaronbanse

Description

@aaronbanse

When I create a MoveList, it seems like you can't have an expression for the color, you just need to specify a constant WHITE or BLACK. Currently, this means that I can't switch between which color I'm generating moves for at runtime with just one MoveList. I would have to separately make a WHITE and BLACK MoveList every time I want to access it, since creating a MoveList requires the color as a constant.

How do I get around this, am I missing something? I'm not super experienced with C++ and haven't worked withe templates before.

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