Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a Strategy Pattern in class Tic Tac Toe #3

Open
JamesIGT opened this issue Dec 16, 2024 · 0 comments
Open

Using a Strategy Pattern in class Tic Tac Toe #3

JamesIGT opened this issue Dec 16, 2024 · 0 comments

Comments

@JamesIGT
Copy link

JamesIGT commented Dec 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant