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

Seperate concerns in 'get_input_board' #3

Open
tinsmancb opened this issue Oct 1, 2024 · 0 comments
Open

Seperate concerns in 'get_input_board' #3

tinsmancb opened this issue Oct 1, 2024 · 0 comments

Comments

@tinsmancb
Copy link

The function get_input_board is currently doing two different things that should be handled by two seperate functions:

  1. Prompting the user to input a sudoku board
  2. Converting a sudoku board represented as a string to a Sudoku object. This second function should not print anything or prompt for input.

The second of these should be a method of the Sudoku class! The constructor (__init__ method) should detect the type of its input with the typeof and feed it into the string conversion function if appropriate.

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