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
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
