NAME
pyonRead β read a whole text: lines, steps and notes
SYNOPSIS
pyonRead(t_String, g_Integer, start_Association)
DESCRIPTION
Splits the text at ; (at most 2000 characters and 12 lines), reads each line, keeps who acts from line to line, draws each π² as 1 or 0 and reads the lamps where the creatures stand. A line is done numbers Γ dice Γ lamps times, at most 9, with a note when more was asked; a line with again goes on round after round while its lamps and dice read 1, read before each round, at most 9 rounds or the line's number, and is marked with ceiling when it stops at 9 with its lamps still lit. Each round adds one step for each move, with where both creatures stand and who bumped; at most 80 steps. Unknown words and lines without moves are noted.
PARAMETERS
t: the text; g: the size of the grid; start: the home squares.
RETURN VALUE
<| "kernel", "grid", "start", "lines", "steps", "notes" |>; each line gives its text, who, numbers, dice, lamps (with their values), times, moves, unknown words, again, ceiling and its "pyon" echo.
NOTES
Known fault: the "pyon" echo leaves out π². The steps are right.
INNER HELPERS
Defined inside it, and documented here: doRound.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (ζιγγΌγ«), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
Β© Computational Classnotes Β· CC BY-NC-SA 4.0
