Package: samuel
Samuel - John Cheetham -http://www.johncheetham.com/projects/samuelDescriptionSamuel is a Draughts program written in python3/GTK3/C++.
It is licensed under the GPL (see the file named LICENSE).It is aimed mainly at Linux users but should work on other systems
too.It is derived from guicheckers version 1.05. guicheckers is a draughts
program for windows which comes with source code. The C++ engine code,
board images and opening book/endgame databases all come from guicheckers.
So credit and thanks to the guicheckers people (programming by Jon Kreuzer
graphics by Josh Hess) for making their code available. You can find the
guicheckers website athttp://www.3dkingdoms.com/checkers.htm.Samuel is named after Arthur Samuel, a pioneer of Computer Draughts, seehttp://en.wikipedia.org/wiki/Arthur_Samuel.Linux InstallationPrerequisitesYou need to install these prerequisites first:python3python3-cairopython3-gobjectpython3-develg++You need the python3 versions.
These will have different names depending on your distro.On Debian/Mint/Ubuntupython3-gi-cairopython3-devbuild-essentialOn Fedorapython3-cairopython3-gobjectpython3-develgcc-c++redhat-rpm-configInstallationRunning from the Source DirectoryYou can run samuel from the source directory without
doing the full install (recommended).To do this:‘python3 setup.py build’to build it.‘python3 run.py’to run it from within the source folder.Installing on the system‘python3 setup.py build’to build it (as normal user).‘python3 setup.py install’to install it (as root user).Note:Samuel should now be installed on your system. You can launch it from
the gnome menu (under games) or type ‘samuel’ in any terminal window.There is no uninstall (distutils doesn’t have one). If you need to
uninstall you have to make a note of the file names and then delete
them manually.If running the build/install multiple times it’s best to delete the
build folder each time.You can also install from the python package index using
‘pip3 install samuel’.UsageBy default the computer plays white, you play red. In English Draughts Red
moves first. Click on a red piece and then click on a destination square to
move it. The computer will then automatically move a white piece.If you want to play as white instead of red then select ‘options’ then
‘computer plays red’ from the menu bar. You will then need to click ‘Go’
or press ‘g’ to start the game and make the computer make the first move
for red.If you play as white you can also enable the ‘Flip the Board’ feature so
that the white pieces are at the bottom of the board.If the computer plays both white and red you need to click the Go button
each time to make the computer move. If you are playing Human vs Computer
then the computer will make its move automatically after the Human move.Use the menu bar to set the level of difficulty or save the game etc.
Use the buttons at the bottom to rewind the game.If you want to set the lowest level then select user-defined level and
set the search depth to zero.User settings are stored in the file ~/.samuel/settings
You can delete this file to go back to the default settings.
You may also want to delete this file if you get problems when switching from
one version of samuel to another since the format can change between versions.See also the online help file athttp://www.johncheetham.com/projects/samuel/help/help.htmlThis can be viewed in samuel from the help menu.Summary of keyboard commandsKeysFunctionCTRL+NNew GameCTRL+OLoad GameCTRL+SSave GameCTRL+QQuit GamemMove Now - press this to make the computer move immediately
when it’s taking a long time thinkingCTRL+CCopy game to clipboard (in PDN format)CTRL+VPaste game from clipbaord (in PDN format)CTRL+0Reset board size to default sizegSame as the ‘Go’ button. Its main use is to make the
computer make its move when the game is stopped.deleteClear the board when in position edit moderRetract last move[rewind 1 move]forward 1 move{rewind to start of game}forward to end of game‘3’Used for opening book. See below.‘2’Used for opening book. See below.‘4’Used for opening book. See below.‘6’Used for opening book. See below.‘K’Used for opening book. See below.‘S’Used for opening book. See below.Opening BookThe file opening.gbk contains moves for the opening book.
It comes from guicheckers pre-seeded with opening moves.You can modify it with these commands:KeyFunction‘3’Add Current Board position / adjust towards ‘0’‘2’Add/Adjust to being good for red‘4’Add/Adjust to being good for white‘6’Remove Position‘K’Clear Opening Book in memory‘S’Save Opening BookWhen saving the opening book is saved to ~/.samuel/opening.gbk.
When loading at startup it’s loaded first from ~/.samuel/opening.gbk.
If not found there it will be loaded from the same directory as the program.
After a standard install the program directory will be read only which is why
‘save’ always saves to ~/.samuel/opening.gbk.Most people will not want to modify the opening book.TroubleshootingIf it won’t start after upgrading from an older version then try deleting the
file ~/.samuel/settings.If you click on the buttons or press the keys repeatedly and very rapidly it
can break the engine. For this reason it’s best to leave at least 1 second
between clicks.If you see a white background around the piece when dragging then you may need
to install a compositor such as compton.End Game DatabaseThe files 2pc.cdb, 3pc.cdb and 4pc.cdb contain moves for the
end game. These files can be built using the genalldatabases
program.AcknowledgementsSamuel uses C++ engine code, board graphics, opening book and endgame database
from guicheckers.
guicheckers web page:http://www.3dkingdoms.com/checkers.htmCHANGELOGChanges for 0.1.92019-02-08  John Cheethamdeveloper@johncheetham.comport to python3/GTK3allow drag and drop of piecesMake main window resizablebugfixesChanges for 0.1.82009-10-27  John Cheethamdeveloper@johncheetham.comAdd ‘Flip the Board’ featureAllow player to choose colour to play (white or red).
Also allow player vs computer, player vs player, computer vs computerAdd a status barEnforce time limit on user defined levels but not on pre-set levels.
This will improve the play on the pre-set levels.In position edit modeAllow use of the Delete key to clear the board.Ignore other key presses except for resize boardAdd online help fileChanges for 0.1.72009-10-02  John Cheethamdeveloper@johncheetham.commake board resizeableremember users settings between program invocationssimplify level settingsfix bugs in gameover, movenow and time limit processingadd keyboard commands for retract move etcclean up codeChanges for 0.1.62009-09-05  John Cheethamdeveloper@johncheetham.comnice display of multi jumps by the computeredit board featuresuppress compiler warnings (though there are some on centos5 - must be an older compiler)allow user-defined levelsChanges for 0.1.52009-08-29  John Cheethamdeveloper@johncheetham.comDisplay gameover at end of gameFix keyboard shortcuts in menuFix fault after loading game from file/PDN/FEN when it’s white to play
Added a Go button to make white moveDon’t hilight squares clicked on if end of game or white to moveAdd explanatory messages to panel when using rewind keys.