# NOT RUN {
## should use Xlib for the x11() device under *nix, e.g
if (interactive()) {
if (.Platform$OS.type == "windows")
x11() else x11(type = "Xlib")
sliding_puzzle()
sliding_puzzle(z = matrix(0:11, 3, 4))
}
# }
Run the code above in your browser using DataLab