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

NAME

lampValue — what a lamp reads where the creatures stand

SYNOPSIS

lampValue({name_String, lit_Integer}, at_Association, movers_List, g_Integer, start_Association)

DESCRIPTION

near: Mochi and Onigiri at most one square apart; wall: any of the ones acting on the edge; home: all of them on their start squares. A lit lamp reads Boole of that; a dark lamp reads 1 − it.

PARAMETERS

{name, lit}: the lamp, and 1 for lit or 0 for dark. at: where both stand; movers: the ones acting; g: the grid; start: the home squares.

RETURN VALUE

1 or 0.

SEE ALSO

pyonRead(3kernel), lampValue(3pyon)

SOURCE

kernel/ff_pyonkernel.nb: line 133 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