| 1 |
\section{Definiciones de piedras y de tableros} |
| 2 |
|
| 3 |
|
| 4 |
\subsection{Piedras y jugadores} |
| 5 |
\subsubsection{pgfgo} |
| 6 |
|
| 7 |
\begin{center} |
| 8 |
\pgfgouseprofile{pgfgo} |
| 9 |
\begin{goban}[10x2, label = {at = {all}}, scale = 2] |
| 10 |
\stone{A1} |
| 11 |
\moves[b]{A:D2} |
| 12 |
\stone[w, mark = {triangle}]{D1} |
| 13 |
\moves*[b]{G1--J1|-G2} |
| 14 |
\mark[b, t-circle]{E1} |
| 15 |
\mark[w, t-square]{E2} |
| 16 |
\end{goban} |
| 17 |
\end{center} |
| 18 |
|
| 19 |
|
| 20 |
Declaramos todos los jugadores y comenzamos definiendo la apariencia del neutral. |
| 21 |
|
| 22 |
\begin{codeexample}[code only] |
| 23 |
\pgfgodefineplayer{pgfgo-neutral}{ |
| 24 |
stone = { |
| 25 |
radius = 0.19cm, |
| 26 |
line = { |
| 27 |
true, |
| 28 |
color = black, |
| 29 |
width = 0.3pt, |
| 30 |
opacity = 1, |
| 31 |
}, |
| 32 |
fill = { |
| 33 |
true, |
| 34 |
color = gray, |
| 35 |
opacity = 1, |
| 36 |
}, |
| 37 |
radius = 0.17cm, |
| 38 |
scale = 1, |
| 39 |
drop shadow = {true, opacity = 0.5, offset = 1pt, angle = -45}, |
| 40 |
drop shine = {true, angle = 45} |
| 41 |
}, |
| 42 |
move = { |
| 43 |
label = { |
| 44 |
color = black, |
| 45 |
format = arabic, |
| 46 |
} |
| 47 |
}, |
| 48 |
mark = { |
| 49 |
line = { |
| 50 |
color = black, |
| 51 |
width = 1pt, |
| 52 |
}, |
| 53 |
fill = {false}, |
| 54 |
label = { |
| 55 |
color = black, |
| 56 |
format = arabic |
| 57 |
} |
| 58 |
} |
| 59 |
} |
| 60 |
\end{codeexample} |
| 61 |
|
| 62 |
|
| 63 |
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. |
| 64 |
|
| 65 |
\begin{codeexample}[code only] |
| 66 |
\pgfgodefineplayer[from = pgfgo-neutral]{pgfgo-white}{ |
| 67 |
stone = { |
| 68 |
fill = { |
| 69 |
color = wainwhite |
| 70 |
} |
| 71 |
}, |
| 72 |
move = { |
| 73 |
label = { |
| 74 |
color = black |
| 75 |
} |
| 76 |
}, |
| 77 |
mark = { |
| 78 |
line = {color = black}, |
| 79 |
fill = {color = white}, |
| 80 |
label = {color = black} |
| 81 |
} |
| 82 |
} |
| 83 |
|
| 84 |
|
| 85 |
\pgfgodefineplayer[from = pgfgo-neutral]{pgfgo-black}{ |
| 86 |
stone = { |
| 87 |
fill = { |
| 88 |
color = wainblack |
| 89 |
} |
| 90 |
}, |
| 91 |
move = { |
| 92 |
label = { |
| 93 |
color = pgfgo |
| 94 |
} |
| 95 |
}, |
| 96 |
mark = { |
| 97 |
line = { |
| 98 |
color = pgfgo, |
| 99 |
}, |
| 100 |
label = {color = black} |
| 101 |
} |
| 102 |
} |
| 103 |
\end{codeexample} |
| 104 |
|
| 105 |
|
| 106 |
\subsubsection{pgfgosmooth} |
| 107 |
\begin{center} |
| 108 |
\pgfgouseprofile{pgfgosmooth} |
| 109 |
\begin{goban}[10x2, label = {at = {all}}, scale = 2] |
| 110 |
\stone{A1} |
| 111 |
\moves[b]{A:D2} |
| 112 |
\stone[w, mark = {triangle}]{D1} |
| 113 |
\moves*[b]{G1--J1|-G2} |
| 114 |
\mark[b, t-circle]{E1} |
| 115 |
\mark[w, t-square]{E2} |
| 116 |
\end{goban} |
| 117 |
\end{center} |
| 118 |
|
| 119 |
\begin{codeexample}[code only] |
| 120 |
\pgfgodefineplayer[from = pgfgo-neutral]{pgfgosmooth-neutral}{ |
| 121 |
stone = { |
| 122 |
line = false, |
| 123 |
radius = 0.19cm, |
| 124 |
drop shine = {opacity = 0.5}} |
| 125 |
} |
| 126 |
\end{codeexample} |
| 127 |
|
| 128 |
|
| 129 |
\begin{codeexample}[code only] |
| 130 |
\pgfgodefineplayer[from = pgfgo-black]{pgfgosmooth-black}{stone = {line = false, drop shine = {opacity = 0.5}}} |
| 131 |
\end{codeexample} |
| 132 |
|
| 133 |
\begin{codeexample}[code only] |
| 134 |
\pgfgodefineplayer[from = pgfgo-white]{pgfgosmooth-white}{stone = {line = false}} |
| 135 |
\end{codeexample} |
| 136 |
|
| 137 |
|
| 138 |
\subsubsection{wain} |
| 139 |
|
| 140 |
\begin{center} |
| 141 |
\pgfgouseprofile{wain} |
| 142 |
\begin{goban}[10x2, label = {at = {all}}, scale = 2] |
| 143 |
\stone{A1} |
| 144 |
\moves[b]{A:D2} |
| 145 |
\stone[w, mark = {triangle}]{D1} |
| 146 |
\moves*[b]{G1--J1|-G2} |
| 147 |
\mark[b, t-circle]{E1} |
| 148 |
\mark[w, t-square]{E2} |
| 149 |
\end{goban} |
| 150 |
\end{center} |
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
\begin{codeexample}[code only] |
| 156 |
\definecolor{waingoban}{HTML}{402A2D} |
| 157 |
\definecolor{waingoban-s}{HTML}{493739} |
| 158 |
\definecolor{waingrid}{HTML}{FAE0B2} |
| 159 |
\definecolor{wainblack}{HTML}{4B4B4D} %PIEDRA NEGRA |
| 160 |
\definecolor{wainshade}{HTML}{E6E7E8} |
| 161 |
\definecolor{wainwhite}{HTML}{FEFEFE} %PIEDRA BLACA |
| 162 |
\end{codeexample} |
| 163 |
|
| 164 |
|
| 165 |
\begin{codeexample}[code only] |
| 166 |
\pgfgodefineplayer{wain-neutral}{ |
| 167 |
stone = { |
| 168 |
line = { |
| 169 |
true, |
| 170 |
color = waingrid, |
| 171 |
width = 0.2pt, |
| 172 |
opacity = 1, |
| 173 |
}, |
| 174 |
fill = { |
| 175 |
true, |
| 176 |
color = wainblack!50!wainwhite, |
| 177 |
opacity = 1, |
| 178 |
}, |
| 179 |
radius = 0.17cm, |
| 180 |
scale = 1, |
| 181 |
drop shadow = {true, opacity = 0.5, offset = 1pt, angle = -45}, |
| 182 |
drop shine = {true, angle = 45} |
| 183 |
}, |
| 184 |
move = { |
| 185 |
label = { |
| 186 |
color = black, |
| 187 |
format = arabic, |
| 188 |
} |
| 189 |
}, |
| 190 |
mark = { |
| 191 |
line = { |
| 192 |
color = waingoban, |
| 193 |
width = 1pt, |
| 194 |
}, |
| 195 |
fill = {false}, |
| 196 |
label = { |
| 197 |
color = waingoban, |
| 198 |
format = arabic |
| 199 |
}, |
| 200 |
} |
| 201 |
} |
| 202 |
\end{codeexample} |
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
\begin{codeexample}[code only] |
| 207 |
\pgfgodefineplayer[from = wain-neutral]{wain-white}{ |
| 208 |
stone = { |
| 209 |
fill = { |
| 210 |
color = wainwhite |
| 211 |
} |
| 212 |
}, |
| 213 |
move = { |
| 214 |
label = { |
| 215 |
color = waingoban |
| 216 |
} |
| 217 |
}, |
| 218 |
mark = { |
| 219 |
line = { |
| 220 |
color = waingoban, |
| 221 |
}, |
| 222 |
label = {color = waingoban} |
| 223 |
} |
| 224 |
} |
| 225 |
\end{codeexample} |
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
\begin{codeexample}[code only] |
| 231 |
\pgfgodefineplayer[from = wain-neutral]{wain-black}{ |
| 232 |
stone = { |
| 233 |
fill = { |
| 234 |
color = wainblack |
| 235 |
} |
| 236 |
}, |
| 237 |
move = { |
| 238 |
label = { |
| 239 |
color = waingrid |
| 240 |
} |
| 241 |
}, |
| 242 |
mark = { |
| 243 |
line = { |
| 244 |
color = waingrid, |
| 245 |
}, |
| 246 |
label = {color = waingrid} |
| 247 |
} |
| 248 |
} |
| 249 |
\end{codeexample} |
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
\subsection{Tableros} |
| 257 |
\subsubsection{pgfgo} |
| 258 |
\begin{center} |
| 259 |
\pgfgouseprofile{pgfgo} |
| 260 |
\begin{goban}[10x2, label = {at = all}, scale = 2] |
| 261 |
\end{goban} |
| 262 |
\end{center} |
| 263 |
|
| 264 |
\begin{codeexample}[code only] |
| 265 |
\pgfgodefinegoban{pgfgo}{ |
| 266 |
background = { |
| 267 |
fill = { |
| 268 |
color = pgfgo, |
| 269 |
opacity = 1}, |
| 270 |
line = { |
| 271 |
color = pgfgo!10!black, |
| 272 |
opacity = 1}, |
| 273 |
drop shadow}, |
| 274 |
grid = { |
| 275 |
line = { |
| 276 |
color = pgfgo!10!black, |
| 277 |
width = 1pt}}, |
| 278 |
label = { |
| 279 |
text color = black |
| 280 |
} |
| 281 |
} |
| 282 |
\end{codeexample} |
| 283 |
|
| 284 |
|
| 285 |
\subsubsection{pgfgosmooth} |
| 286 |
\begin{center} |
| 287 |
\pgfgouseprofile{pgfgosmooth} |
| 288 |
\begin{goban}[10x2, label = {at = all}, scale = 2] |
| 289 |
\end{goban} |
| 290 |
\end{center} |
| 291 |
|
| 292 |
|
| 293 |
\begin{codeexample}[code only] |
| 294 |
\pgfgodefinegoban[from = pgfgo]{pgfgosmooth}{ |
| 295 |
background = { |
| 296 |
line = false, |
| 297 |
rounded corners = { |
| 298 |
inner = 2pt, |
| 299 |
outer = 8pt |
| 300 |
}, |
| 301 |
drop shadow |
| 302 |
}, |
| 303 |
grid = { |
| 304 |
line = {opacity = 0.1} |
| 305 |
} |
| 306 |
} |
| 307 |
\end{codeexample} |
| 308 |
|
| 309 |
|
| 310 |
\subsubsection{wain} |
| 311 |
\begin{center} |
| 312 |
\pgfgouseprofile{wain} |
| 313 |
\begin{goban}[10x2, label = {at = all}, scale = 2] |
| 314 |
\end{goban} |
| 315 |
\end{center} |
| 316 |
|
| 317 |
\begin{codeexample}[code only] |
| 318 |
\pgfgonewprofile{wain}{ |
| 319 |
goban = { |
| 320 |
background = { |
| 321 |
fill = { |
| 322 |
color = waingoban, |
| 323 |
opacity = 1}, |
| 324 |
line = { |
| 325 |
color = waingrid, |
| 326 |
opacity = 1}}, |
| 327 |
grid = { |
| 328 |
line = { |
| 329 |
color = waingrid, |
| 330 |
width = 1pt}}, |
| 331 |
label = { |
| 332 |
text color = waingoban} |
| 333 |
} |
| 334 |
} |
| 335 |
\end{codeexample} |