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, powered by microcosm.
Report a problem