package main

import (
    "fmt"
    "log"
    "strings"
)

var glyphs = []rune("")
var names = map[rune]string{'R': "rook", 'N': "knight", 'B': "bishop", 'Q': "queen", 'K': "king"}
var g2lMap = map[rune]string{
    '': "R", '': "N", '': "B", '': "Q", '': "K",
    '': "R", '': "N", '': "B", '': "Q", '': "K",
}

var ntable = map[string]int{"01": 0, "02": 1, "03": 2, "04": 3, "12": 4, "13": 5, "14": 6, "23": 7, "24": 8, "34": 9}

func g2l(pieces string) string {
    lets := ""
    for _, p := range pieces {
        lets += g2lMap[p]
    }
    return lets
}

func spid(pieces string) int {
    pieces = g2l(pieces)