/* 01_hello_board.c -- the smallest possible SAN Kit program.
 *
 * Functions demonstrated:
 *   SANInit()      -- one-time library initialization (call exactly once)
 *   SANDspBoard()  -- print the current position as an ASCII diagram
 *   SANFENGen()    -- return the current position as a FEN string
 *
 * Every program built on the SAN Kit library must call SANInit()
 * before touching any other SAN Kit function. It sets up all the
 * global lookup tables, allocates the move-tree storage, and resets
 * the board to the normal starting position.
 */

#include "_common.h"

#include "sanint.h"
#include "sandsp.h"
#include "sanfen.h"

int
main (void)
{
  SANInit ();

  printf ("SAN Kit initialized. Starting position:\n\n");
  SANDspBoard ();

  printf ("\nAs FEN: %s\n", SANFENGen ());

  return (0);
}
