print.nonogram: print.nonogram

View source: R/print.nonogram.R

print.nonogramR Documentation

print.nonogram

Description

Simply prints the dimensions of the nonogram and whether it has been solved. If the nonogram has been solved, the solution matrix is also printed.

Usage

## S3 method for class 'nonogram'
print(nonogram)

Arguments

nonogram

An object of class nonogram.

Examples

f <- nonogram(
       rows = list(
         c(1), c(1), c(2, 1), c(2, 1), c(3, 2), c(4, 3), c(5, 4),  c(1),  c(8),  c(6)
       ),
       columns = list(
         c(1), c(2, 1),  c(3, 2),  c(5, 2),  c(7, 2), c(3),  c(5, 2),  c(3, 2),  c(2, 1),  c(1)
       )
     )
   
print(f)

f <- solve(f)

print(f)

hrj21/nonogram documentation built on April 6, 2024, 1:14 a.m.