Turing.Sheet
ReferencesA Turing sheet, or two dimensional Turing tape.
Constructors
Sheet
#Setup a new Turing sheet.
Parameters:
| instructions (IEnumerable<Turing.Instruction>) | Instructions. |
| initialState (string) | Initial state value. |
Properties
IsFinished
#Gets whether this machine is in a finished state. This only happens when a terminal instruction is executed, or when the machine gets into a state which has no instruction associated with it.
Indexers
Methods
ComputeBounds
#Gets the lowest and highest defined indices along both axes.
CopyBlock
#Clone an entire rectangular region of values.
CopyValues
#Clone the current sheer layout into an array.
Returns: Array of sheet coordinates and values.
FillBlock
#Assign a bunch of values to a rectangular block.
SetCaret
#Set the caret to a specific index. You'd be well advised to not set the caret while the machine is running, but I'm not your mother.
SetupSheet
#Set a bunch of values en masse.
Parameters:
| values (IEnumerable<(int x, int y, string value)>) | Index+Content tuples. |
TransferSheet
#Copy all sheet cells from another Turing machine.
Parameters:
| source (Turing.Sheet) | Source machine. |