\section{Definiciones de piedras y de tableros}


\subsection{Piedras y jugadores}
	\subsubsection{pgfgo}
	
	\begin{center}
		\pgfgouseprofile{pgfgo}
		\begin{goban}[10x2, label = {at = {all}}, scale = 2]
			\stone{A1}
			\moves[b]{A:D2}
			\stone[w, mark = {triangle}]{D1}
			\moves*[b]{G1--J1|-G2}
			\mark[b, t-circle]{E1}
			\mark[w, t-square]{E2}
		\end{goban}
	\end{center}
	
	
	Declaramos todos los jugadores y comenzamos definiendo la apariencia del neutral.
	
	\begin{codeexample}[code only]
		\pgfgodefineplayer{pgfgo-neutral}{
			stone = {
				radius = 0.19cm,
				line = {
					true,
					color = black,
					width = 0.3pt,
					opacity = 1,
				},
				fill = {
					true,
					color = gray,
					opacity = 1,
				},
				radius = 0.17cm,
				scale = 1,
				drop shadow = {true, opacity = 0.5, offset = 1pt, angle = -45},
				drop shine = {true, angle = 45}
			},
			move = {
				label = {
					color = black,
					format = arabic,
				}
			},
			mark = {
				line = {
					color = black,
					width = 1pt,
				},
				fill = {false},
				label = {
					color = black,
					format = arabic
				}
			}
		}
	\end{codeexample}
	
	
	Algunas cosas como el grosor de linea, opacidades y dem\'as, deseo que se conserven en todas las piedras, as\'i que copio la plantilla del jugador neutral.
	
	\begin{codeexample}[code only]
		\pgfgodefineplayer[from = pgfgo-neutral]{pgfgo-white}{
			stone = {
				fill = {
					color = wainwhite
				}
			},
			move = {
				label = {
					color = black
				}
			},
			mark = {
				line 	= {color = black},
				fill 	= {color = white},
				label = {color = black}
			}
		}
		
		
		\pgfgodefineplayer[from = pgfgo-neutral]{pgfgo-black}{
			stone = {
				fill = {
					color = wainblack
				}
			},
			move = {
				label = {
					color = pgfgo
				}
			},
			mark = {
				line = {
					color = pgfgo,
				},
				label = {color = black}
			}
		}
	\end{codeexample}


	\subsubsection{pgfgosmooth}
	\begin{center}
		\pgfgouseprofile{pgfgosmooth}
		\begin{goban}[10x2, label = {at = {all}}, scale = 2]
			\stone{A1}
			\moves[b]{A:D2}
			\stone[w, mark = {triangle}]{D1}
			\moves*[b]{G1--J1|-G2}
			\mark[b, t-circle]{E1}
			\mark[w, t-square]{E2}
		\end{goban}
	\end{center}

	\begin{codeexample}[code only]		
		\pgfgodefineplayer[from = pgfgo-neutral]{pgfgosmooth-neutral}{
			stone = {
				line = false,
				radius = 0.19cm,
				drop shine = {opacity = 0.5}}
		}		
	\end{codeexample}


	\begin{codeexample}[code only]
		\pgfgodefineplayer[from = pgfgo-black]{pgfgosmooth-black}{stone = {line = false, drop shine = {opacity = 0.5}}}
	\end{codeexample}
	
	\begin{codeexample}[code only]
		\pgfgodefineplayer[from = pgfgo-white]{pgfgosmooth-white}{stone = {line = false}}
	\end{codeexample}


	\subsubsection{wain}
	
	\begin{center}
		\pgfgouseprofile{wain}
		\begin{goban}[10x2, label = {at = {all}}, scale = 2]
			\stone{A1}
			\moves[b]{A:D2}
			\stone[w, mark = {triangle}]{D1}
			\moves*[b]{G1--J1|-G2}
			\mark[b, t-circle]{E1}
			\mark[w, t-square]{E2}
		\end{goban}
	\end{center}
	

	
	
	\begin{codeexample}[code only]
		\definecolor{waingoban}{HTML}{402A2D}
		\definecolor{waingoban-s}{HTML}{493739}
		\definecolor{waingrid}{HTML}{FAE0B2}
		\definecolor{wainblack}{HTML}{4B4B4D} %PIEDRA NEGRA
		\definecolor{wainshade}{HTML}{E6E7E8}
		\definecolor{wainwhite}{HTML}{FEFEFE} %PIEDRA BLACA
	\end{codeexample}
	
	
	\begin{codeexample}[code only]
		\pgfgodefineplayer{wain-neutral}{
			stone = {
				line = {
					true,
					color = waingrid,
					width = 0.2pt,
					opacity = 1,
				},
				fill = {
					true,
					color = wainblack!50!wainwhite,
					opacity = 1,
				},
				radius = 0.17cm,
				scale = 1,
				drop shadow = {true, opacity = 0.5, offset = 1pt, angle = -45},
				drop shine = {true, angle = 45}
			},
			move = {
				label = {
					color = black,
					format = arabic,
				}
			},
			mark = {
				line = {
					color = waingoban,
					width = 1pt,
				},
				fill = {false},
				label = {
					color = waingoban,
					format = arabic
				},
			}
		}
	\end{codeexample}



	\begin{codeexample}[code only]
		\pgfgodefineplayer[from = wain-neutral]{wain-white}{
			stone = {
				fill = {
					color = wainwhite
				}
			},
			move = {
				label = {
					color = waingoban
				}
			},
			mark = {
				line = {
					color = waingoban,
				},
				label = {color = waingoban}
			}
		}
	\end{codeexample}


	
	
	\begin{codeexample}[code only]
		\pgfgodefineplayer[from = wain-neutral]{wain-black}{
			stone = {
				fill = {
					color = wainblack
				}
			},
			move = {
				label = {
					color = waingrid
				}
			},
			mark = {
				line = {
					color = waingrid,
				},
				label = {color = waingrid}
			}
		}
	\end{codeexample}






\subsection{Tableros}
\subsubsection{pgfgo}
\begin{center}
	\pgfgouseprofile{pgfgo}
	\begin{goban}[10x2, label = {at = all}, scale = 2]
	\end{goban}
\end{center}

\begin{codeexample}[code only]
	\pgfgodefinegoban{pgfgo}{
		background = {
			fill = {
				color = pgfgo,
				opacity = 1},
			line = {
				color = pgfgo!10!black,
				opacity = 1},
			drop shadow},
		grid = {
			line = {
				color = pgfgo!10!black,
				width = 1pt}},
		label = {
			text color = black
		}
	}
\end{codeexample}


\subsubsection{pgfgosmooth}
\begin{center}
	\pgfgouseprofile{pgfgosmooth}
	\begin{goban}[10x2, label = {at = all}, scale = 2]
	\end{goban}
\end{center}


\begin{codeexample}[code only]
	\pgfgodefinegoban[from = pgfgo]{pgfgosmooth}{
		background = {
			line = false,
			rounded corners = {
				inner = 2pt,
				outer = 8pt
			},
			drop shadow
		},
		grid = {
			line = {opacity = 0.1}
		}
	}
\end{codeexample}


\subsubsection{wain}
\begin{center}
	\pgfgouseprofile{wain}
	\begin{goban}[10x2, label = {at = all}, scale = 2]
	\end{goban}
\end{center}

\begin{codeexample}[code only]
	\pgfgonewprofile{wain}{
		goban = {
			background = {
				fill = {
					color = waingoban,
					opacity = 1},
				line = {
					color = waingrid,
					opacity = 1}},
			grid = {
				line = {
					color = waingrid,
					width = 1pt}},
			label = {
				text color = waingoban}
		}
	}
\end{codeexample}