PYONREAD(3KERNEL)Pyon manual Β· PyonKernel in the CCN Cloud (Wolfram Language)PYONREAD(3KERNEL)

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

readLine(3kernel), lampValue(3kernel), place(3kernel), readInPage(3pyon)

SOURCE

kernel/ff_pyonkernel.nb: line 142 of the kernel's one cell

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (ζ˜Ÿι‡ŽγƒŒγƒΌγƒ«), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

Β© Computational Classnotes Β· CC BY-NC-SA 4.0