Description Usage Arguments Value See Also Examples
Not every Lights Out configuration has a solution (this has been mathematically proven). This function determines whether a given board has a solution or not.
TRUE if the given board has a solution;
1 2 3 4 5 6 7 8 9
# The following board is solvable using the classic mode (only adjacent lights # are toggled), but has no solution in the variant mode. lights <- c(1, 1, 0, 1, 0, 0, 0, 0, 0 ) board_classic <- new_board(lights) board_variant <- new_board(lights, classic = FALSE) is_solvable(board_classic) is_solvable(board_variant)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.