sliding block puzzle
Table of Contents
- X11
- XQuartz (macOS)
- xterm
- Enable epel repository
(skip)
- Install xdotool
$ sudo yum install xdotool
$ sudo apt install xdotool
$ brew cask install xquartz
$ brew install xdotool
- Launch xterm.
- Run
unko.puzzle
on xterm. - Enjoy!
- Launch xterm.
$ PATH=$PATH:/opt/X11/bin xterm &
- Run
unko.puzzle
on xterm.$ unko.puzzle
- Enjoy!
Warning: XTEST extension unavailable on '(null)'.
Some functionality may be disabled; See 'man xdotool' for more info.
If you received such a message from xdotool, you may be able to resolve it by execute the following commands and restarting XQuartz:
$ defaults write org.x.X11 enable_test_extensions -boolean true
$ defaults write org.macosforge.xquartz.X11 enable_test_extensions -boolean true
See: https://stackoverflow.com/questions/1264210/does-mac-x11-have-the-xtest-extension
- tile map
+-+-+-+
|x|1|2|
+-+-+-+
|3|4|5|
+-+-+-+
|6|7|8|
+-+-+-+
- debug
$ DEBUG_UNKO=true TILES=2 unko.puzzle 2>>/tmp/unko.log