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

ref: refactor KnightTour implementation #11356

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Apr 9, 2024

  1. Configuration menu
    Copy the full SHA
    f9070f2 View commit details
    Browse the repository at this point in the history
  2. ref: update KnightTour implementation

    - The `MOVES` list is declared as a class attribute since it does not change and is shared among all instances.
    - The `board_size` is passed to the constructor, and `board` is initialized as an instance attribute.
    - The `get_valid_moves` method now uses instance variables instead of relying on class variables.
    - `solve_knight_tour` and `find_knight_tour` methods now directly access `self.board_size` and `self.board`.
    TruongNhanNguyen committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    b728110 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2024

  1. Configuration menu
    Copy the full SHA
    aedc4ba View commit details
    Browse the repository at this point in the history