Skip to content

Minimax issues #3

@edre

Description

@edre

Hello, and thanks for trying out my minimax library! You're the third one including me so please let me know how it can be improved :)

I see a couple of issues with how your game is implementing the interface:

  • The out of bounds error when enabling countermoves is because you are generating moves with a table_index greater than max_table_index. I could probably have a clearer error message here.
  • You're mutating the game state in apply, but you haven't implemented undo. This will make all of the algorithms fundamentally broken.

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