Friday, April 14, 2023

Coordinates Input and Validation

Hello,

I created a mechanism for a user input. Coordinates will be required for operations on board cells 😎


I took care of validation of the input. My code checks input length and looks for a number. Program sets index for that number. Treats the second character as a letter. If both characters belong to the correct scope, the validation result is true 👍

Regards!

napu