Execute SNUSP/D: Difference between revisions
Content added Content deleted
m (<code> uh oh...double backslash problem) |
m (<lang>) |
||
Line 25: | Line 25: | ||
:::==a^A<=cp==B^==<=C^== |
:::==a^A<=cp==B^==<=C^== |
||
::when the code pointer cp heading into A's^, next turn, the code pointer will be in C. if no such ^ in the reverse direction, the code pointer will be in ''a'' next turn. |
::when the code pointer cp heading into A's^, next turn, the code pointer will be in C. if no such ^ in the reverse direction, the code pointer will be in ''a'' next turn. |
||
<lang d> |
|||
module snud ; |
|||
private import std.string, std.random ; |
private import std.string, std.random ; |
||
Line 210: | Line 211: | ||
private char[char] acceptCmd ; |
private char[char] acceptCmd ; |
||
private uint Id = 0 ; |
private uint Id = 0 ; |
||
} |
|||
}</code> |
|||
</lang> |
|||
Sample SNUSP using a console io : |
Sample SNUSP using a console io : |
||
<lang d> |
|||
module rcsnusp ; |
|||
import snud ; |
import snud ; |
||
import std.stdio, std.file, std.conv ; |
import std.stdio, std.file, std.conv ; |
||
Line 263: | Line 266: | ||
return result ; |
return result ; |
||
} |
|||
}</code> |
|||
</lang> |