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

Version two #5

Open
tjkuson opened this issue Mar 9, 2023 · 2 comments
Open

Version two #5

tjkuson opened this issue Mar 9, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@tjkuson
Copy link
Owner

tjkuson commented Mar 9, 2023

The code needs a rewrite:

  • use a piece list rather than a square list;
  • reduce the abundance of shared pointers;
  • make code easier to read;
  • use better modern C++ practices.
@tjkuson tjkuson added the enhancement New feature or request label Mar 9, 2023
@tjkuson tjkuson self-assigned this Mar 9, 2023
@tjkuson tjkuson pinned this issue Mar 9, 2023
@tjkuson
Copy link
Owner Author

tjkuson commented Mar 10, 2023

Board and piece representation is now complete. The next step is to implement the game logic.

@tjkuson
Copy link
Owner Author

tjkuson commented Mar 11, 2023

Probing the board now involves board set boolean logic. Previously, it would check each square for if it were empty and if not, look to at what piece the pointer was pointing. This made it cumbersome to generate and check the legality of moves; hopefully this change will make things easier!

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

When branches are created from issues, their pull requests are automatically linked.

1 participant