Calculates light points and scoring for the Photosynthesis board game.
Visit https://fonglh.github.io/photosynthesis-board-game/
Tap on an empty cell corresponding to where the player is growing a tree from a seed.
Select the player's tree colour from the popup.
Tap on an existing tree to grow it to the next level.
When a tree has grown to a Large Tree (indicated with iii
), tapping one more time will harvest the tree.
The space on the board is cleared, and the score is incremented based on the tree's location and how soon it was harvested. See the game rules for scoring details.
Since clearing a cell also harvests a tree and thus affects the scoring, an Undo
function has been added to reverse the last move.
This just shifts the red border around the light point indicator. It allows players to quickly see how many light points they will earn for each of the sun positions with the current layout.