Skip to content

Using a Strategy Pattern in class Tic Tac Toe #3

@JamesIGT

Description

@JamesIGT

The redesign using the Strategy pattern primarily improves the flexibility and scalability of the code, as it allows adding or changing movement selection algorithms without affecting other parts of the system. However, this modularity introduces initial complexity by requiring the creation of an interface and multiple concrete strategy classes. This may slightly increase development and maintenance time for small projects, but in the long run, it simplifies the implementation of new features, allows for individual unit testing of each strategy, and enhances adaptability to future requirements, such as adjustable difficulty levels or more complex algorithms like Minimax.
image
image
image
image
image
image

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