03-02-2021, 06:36 AM
OK, did some work for you...
Please see the notes in the code. The code has several Options for how (not) to write the program.
The two statements I thought behave differently, here appear to behave the same way, at least for this use of them (I didn't test in the from statement)
The issues come up in what happens when the specs are missing or mis-matched. Some of these mismatches hang the component drawing, some affect array indexes, some the base containerSite is out of cell range, Some give invalid cell index ##, etc.
Also, it uncovered a bug where the from location is being altered from its original value, so in the full moves, the selected from cell is mis-recorded and mis-applied. You should fix this. And also block/fix any behavior that hangs the program.
Beyond that it is your project, so you can determine how far to take the implementation of the ability to script mixed site type games...
Please see the notes in the code. The code has several Options for how (not) to write the program.
The two statements I thought behave differently, here appear to behave the same way, at least for this use of them (I didn't test in the from statement)
The issues come up in what happens when the specs are missing or mis-matched. Some of these mismatches hang the component drawing, some affect array indexes, some the base containerSite is out of cell range, Some give invalid cell index ##, etc.
Also, it uncovered a bug where the from location is being altered from its original value, so in the full moves, the selected from cell is mis-recorded and mis-applied. You should fix this. And also block/fix any behavior that hangs the program.
Beyond that it is your project, so you can determine how far to take the implementation of the ability to script mixed site type games...