craftyrc(5)

πŸ’– craftyrc β€” the run control glow-up πŸ’–

okay bestie, so this is crafty.rc / .craftyrc, and it's literally the run control file for crafty(6). πŸŽ€


✨ NAME ✨

crafty.rc, .craftyrc β€” run control for crafty(6) πŸ¦‹


🌸 DESCRIPTION 🌸

So a Crafty run control file is just a sequence of valid Crafty commands, bestie. That's it. That's the whole vibe. πŸ’…

The one thing you gotta do is end it with the command exit, because that's what restores standard input back to the keyboard. No exit, no keyboard, and you're just stuck there like 😭.

This manual page is giving skeletal example energy β€” just the bare bones. And ngl, even the few commands shown here aren't fully explained, so if you want the real tea you have to look them up in "crafty.doc". And as for where this run control file is supposed to live? Girl, go check crafty(6). πŸ‘‘


πŸ”₯ EXAMPLE πŸ”₯

okay so here's the whole thing, verbatim, no cap:

# $HOME/.craftyrc (comments like this are fine).

! echo "Reading $HOME/.craftyrc ..."
# Crafty's shell escape "!" lets us at system commands.
# Echoed information will be in "log.001".

# PROCESSOR USAGE:

mt=0
# The "mt" command indicates how many processors to use.
# With zero, multiprocessor support is disabled.
# If Crafty has been compiled without SMP support,
# a harmless error message results.

# MEMORY USAGE:

hash=24M
# Memory allowed for transposition hash table.

hashp=3M
# Memory for pawn structure hash table.
# These commands are well explained in "crafty.doc".
# Hopefully, someone will step in and rewrite this
# example to properly use the more intricate "adaptive".

# ENDGAME TABLEBASES:

egtb !
# Enable tablebases.
# The "!" has Crafty pat us on the head if we happen to
# play a good move in the late endgame.

cache=1M
# Define memory usage for caching tablebase probe info.

# OUTPUT TUNING:

show book
# Make Crafty verbose in the opening.

# FINALLY, RESTORE CRAFTY'S INPUT TO THE KEYBOARD:

exit

# End of $HOME/.craftyrc

πŸ’œ SEE ALSO πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Robert Hyatt (hyatt@cis.uab.edu). absolute legend, fr fr 🫢


okay and that's the whole page, bestie β€” go forth and write your .craftyrc like the main character you are. ✨

Crafty 19.8 🌈 December 23, 2003 🌸 craftyrc(5) β€” mwah, sending you off with the source, the version, and the date, all wrapped up cute. πŸ’–πŸŽ€πŸ¦‹