Module rusty_freecell::game::print

source ·
Expand description

Utilities for printing the state of the FreeCell game to the terminal


  • Width of a printed card in characters.
  • Width of a printed card in characters.
  • Default height of the terminal window.
  • Default width of the terminal window.
  • Strings representing ranks in the order: empty, A, 2, 3, …, 10, J, Q, K.
  • Strings representing suits in the order: empty, hearts, clubs, diamonds, spades.
  • Vertical printing offset (measured in characters) between cards that are stacked on top of each other on the tableau.
  • Typical height of the game board in number of lines. This is used for vertically centering the win screen.