that's right. maxLanes is the number of players that can play at the same time...
Now there is the case that not all lanes may be occupied... the game control flow would take care of that when passing turns. The initialization needs to be adjusted as well in line 12 of first code block: The turning on of the first position would only loop thru the lines with a player and leave the remaining unset.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@user96449,
that's right.
maxLanes
is the number of players that can play at the same time...Now there is the case that not all lanes may be occupied... the game control flow would take care of that when passing turns. The initialization needs to be adjusted as well in line 12 of first code block: The turning on of the first position would only loop thru the lines with a player and leave the remaining unset.