-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Dear Alan Munn,
I'm a student currently working on a dissertation on reinforcement learning in backgammon and came across your LaTeX package. It's been incredibly useful, especially as I'm still learning the intricacies of LaTeX. I've made some modifications on my fork and also noticed Javier Doal's fork had some other enhancements, particularly the adjustable board orientation and number flipping, which are more aligned with what I'm accustomed to.
Enable setup from a standard format, like the gnubg position ID, though this might be challenging.
- For a new game, clear the entire board instead of just resetting positions with pieces.
- Implement adjustable board orientations, such as having the home board on the left or right.
- Simplify the process of changing color palettes for points, bars, and checkers.
- Add commands for toggling doubles, similar to dice toggling.
- Create an environment for initializing a blank game, possibly using pgfkeys for customization options like color, dice, doubles, and orientation.
- Setting up from a standard format like gnubg position id (this may be quite challenging)
\begin{backgammon}[dice=false, doubles=true, home-side=right]
\newgame
\boardcaption{Starting Position}
\blackboard
\end{backgammon}I've changed commands to clear the board and set up the starting positions:
% command to setup new blank board
\newcommand*\blankBoard{
\foreach \x in {1,...,24} {
\bk@setstate{\x}{white}
\bk@setcount{\x}{0}
}
\double{neutral}{64}
\bk@displaydicefalse
}
% command to setup new starting board
\newcommand*\startingBoard{
\blankBoard
\foreach \x in {1,12,17,19}
{\bk@setstate{\x}{white}}
\foreach \x in {6,8,13,24}
{\bk@setstate{\x}{black}}
\foreach \x in {1,24}
{\bk@setcount{\x}{2}}
\foreach \x in {12,19,13,6}
{\bk@setcount{\x}{5}}
\foreach \x in {17,8}
{\bk@setcount{\x}{3}}
}
% command to set a new game (no longer displays it)
\let\newgame=\startingBoardI'm enthusiastic about this project and would love to contribute further. Although I'm not a LaTeX expert, I'm eager to learn and help out where I can.
Many Thanks,
Jonathan Good