package chessboard

var starting = [][]byte{
	[]byte{'R', 'N', 'B', 'K', 'Q', 'B', 'N', 'R'},
	[]byte{'P', 'P', 'P', 'P', 'P', 'P', 'P', 'P'},
	[]byte{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
	[]byte{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
	[]byte{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
	[]byte{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
	[]byte{'P', 'P', 'P', 'P', 'P', 'P', 'P', 'P'},
	[]byte{'R', 'N', 'B', 'K', 'Q', 'B', 'N', 'R'},
}

func Piece(p Point) byte {
	return starting[p.y][p.x]
}

package chessboard

type Board [][]byte

var starting = Board{
	{'R', 'N', 'B', 'K', 'Q', 'B', 'N', 'R'},
	{'P', 'P', 'P', 'P', 'P', 'P', 'P', 'P'},
	{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
	{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
	{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
	{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
	{'P', 'P', 'P', 'P', 'P', 'P', 'P', 'P'},
	{'R', 'N', 'B', 'K', 'Q', 'B', 'N', 'R'},
}

func Piece(p Point) byte {
	return starting[p.y][p.x]
}

Set board as an alias of [][]byte
Set board as an alias of [][]byte
