cyberpunk2077-hacking-solver icon indicating copy to clipboard operation
cyberpunk2077-hacking-solver copied to clipboard

Validate code matrix colcount/rowcount

Open cxcorp opened this issue 4 years ago • 3 comments

cxcorp avatar Dec 19 '20 03:12 cxcorp

Have you considered the implementation of a grid of textboxes? Something like: https://github.com/denisraslov/react-spreadsheet-grid

ThatsNinja avatar Jan 03 '21 15:01 ThatsNinja

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.

cxcorp avatar Jan 03 '21 21:01 cxcorp

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.

ThatsNinja avatar Jan 03 '21 23:01 ThatsNinja