I want to create a simple javascript “life game” implementation. I want user to be capable of inputing his structures..
So we have a textaeria, user fills it with something like
*···
*·*·
**··
How to get from such input width 4 , height 3, and an array field with
100010101100
How to do get such data from text input via javascript?
So character 183 rather than a period?
If a period use
\. instead of\xb7Its not clear but if you want that as an array stick
.split("");on the end.Edit for width/height