Implemented help scree

This commit is contained in:
Luxferre
2024-01-16 13:43:50 +02:00
parent c5705c3d69
commit 1e856a5ed1
+16
View File
@@ -192,6 +192,22 @@ function autohome(chres, lres, i) {
}
function help() {
print "nnfc: no-nonsense FreeCell in POSIX AWK"
print "Script parameters:"
print "-v ASCII=1\tuse ASCII instead of Unicode suit chars"
print "-v MONOCHROME=1\t don't use colors"
print "-v SEED=xxxxx\tset game seed number (M$-compatible)"
print "Commands: q - quit, u - undo, ah - autohome, h - this help"
print "Moves: [digit][digit], where \"digits\" are:"
print "- 0 is foundation (can be omitted)"
print "- 1 to 8 are column (tableau) numbers"
print "- a, b, c, d are freecell IDs"
print "Examples:"
print "7a\tmove from column 7 to freecell a"
print "63\tmove from column 6 to column 3"
print "4\tmove from column 4 to the foundation"
print "c\tmove from freecell c to the foundation"
print "ah\tautomatically move all eligible cards to the foundation"
return 1 # continue
}