Linux command
nudoku 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start a new game with default difficulty
nudoku
Start a game with a specific difficulty
nudoku -d [easy|normal|hard]
Start a game in black and white mode
nudoku -c
Load a user-provided puzzle in stream format (dots for empty cells)
nudoku -s [..5.3..8.1...6..2.4....7...]
Export a puzzle to a PDF file
nudoku -p [output.pdf]
Export multiple puzzles to a PDF file
nudoku -p [output.pdf] -n [10]
说明
nudoku is a terminal-based Sudoku game using ncurses for display. It generates puzzles at three difficulty levels and provides a keyboard-driven interface for solving them. Arrow keys navigate the grid, and number keys fill in cells. The game can also export puzzles to PDF or PNG files for printing or sharing.
参数
- -d _DIFFICULTY_
- Set difficulty: easy, normal, or hard. Default is normal.
- -c
- No color mode (black and white). Useful for terminals without color support.
- -s _STREAM_
- Provide a user-supplied puzzle in stream format. Use dots (.) for empty fields, digits for filled cells, all in one line (81 characters).
- -p _FILE_
- Output a puzzle to a PDF file.
- -n _COUNT_
- Number of puzzles to put in the PDF. Only used with -p.
- -i _FILE_
- Output a single puzzle to a PNG image file.
- -h
- Display help information.
- -v
- Display version information.
FAQ
What is the nudoku command used for?
nudoku is a terminal-based Sudoku game using ncurses for display. It generates puzzles at three difficulty levels and provides a keyboard-driven interface for solving them. Arrow keys navigate the grid, and number keys fill in cells. The game can also export puzzles to PDF or PNG files for printing or sharing.
How do I run a basic nudoku example?
Run `nudoku` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d _DIFFICULTY_ do in nudoku?
Set difficulty: easy, normal, or hard. Default is normal.