Skip to content

Game does not accurately check if a player has won. #39

@ElvisRodriguez

Description

@ElvisRodriguez

So far, the game can only confirm a victory if the red pieces are horizontally lined up.
If a player manages to get 4+ red pieces in a column, the game does not recognize it as a victory (in fact, if the AI manages to get 4 horizontal pieces in that time, the player loses despite having been the first to connect 4 pieces).

Diagonal victories are also not recognized, but that can be taken care of in a separate issue.

As a hint, your check_col_full() function can be used as a template to determine vertical and diagonal victories.

If you find the free time, circle back to this assignment and try to address this issue.

@seanc @Athora190 @Jordane-Allen @JustDame

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