Skip to content

Variable player initialized but not used in mini-max and alpha-beta in aima4e-algorithms.pdf #96

@cgosorio

Description

@cgosorio

In the pdf document for the pseudocodes for 4th edition, in the description for Minimax and Alpha-Beta, the variable player is initialized but not used. I think this is a bug, unless the intention is that this variable be treated as global to be used later within Max-Value and Min-Value, but then, the same could have been done with the variables game and state, that are used within the sub-functions but are not modified.

About the format, the variable player, in its initialization, is not in italic like the rest of the variables. This could be also a bug, unless the intention is that the different format was to indicate the variable is global, but then it should not be in italic within the sub-functions.

Also, in the function Minimax-Search the description of the return value is in italics, and it seems that this format is reserved for variables (in the Alpha-Beta-Search, the description of the return value "an action" is not in italics).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions