cyberpunk2077-hacking-solver
cyberpunk2077-hacking-solver copied to clipboard
Validate code matrix colcount/rowcount
Have you considered the implementation of a grid of textboxes? Something like: https://github.com/denisraslov/react-spreadsheet-grid
I haven't given that thought yet to be honest. For starters, I was mainly just thinking about raising a validation error if the given input isn't an n*n matrix.
Just off the top of my head it doesn't sound super difficult to start with a 1*1 and expand it as a user enters codes out to the maximum row width, unless a user gives a newline.
It could have the benefit of having the matrix and solutions already stored as codes in arrays, and mapped back and forth from the UI.