Re: [Bug-gnubg] question: move validation

2016-07-31 Thread Philippe Michel

I'm wondering in which file of the project is move validation done,
more particularly if a given move is valid given a specific dice roll.


This is in eval.c. This is a part of the source I don't really understand 
but GenerateMoves() should be a adequate starting point.


If you want to look at gnubg source, the attached diagram may be useful.

If you are interested in backgammon moves generation in general, not 
specifically how it is done in gnubg, the following file might be easier 
to use :

http://cvs.savannah.gnu.org/viewvc/*checkout*/gnubg/gnubg-nn/gnubg/eggmoveg.c

This is from the software used to train gnubg neural nets and I think its 
author, Joseph Heled posted in this mailing list that its move generation 
code is simpler and more efficient than what is used in gnubg.


gnubg.pdf
Description: Adobe PDF document
___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnubg


[Bug-gnubg] question: move validation

2016-07-28 Thread grdnlndn
Hello there,

I'm a student and I'm studying gnubg source code,
I'm wondering in which file of the project is move validation done,
more particularly if a given move is valid given a specific dice roll.

Sorry for this question, I generally try to avoid disturbing mailing lists
with non important questions.

All the best,
Jules
___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnubg