[computer-go] Efficiently selecting a point to play in a random playout

Jason House jason.james.house at gmail.com
Sun May 27 18:51:14 PDT 2007


Darren Cook wrote:
> Jason House also mentioned "hard coding to a set board size", I think
> libego can be used at least up to 19x19, just by changing the
> "board_size" setting in board.cpp (it also supports hexagonal boards).
> Or did you mean being able to make one binary for all board sizes? I
> feel that that flexibility doesn't justify the performance hit.
>   

One binary for many board sizes is pretty easy and comes at nearly zero 
runtime cost... Templates could at least allow common cases such as 
running on KGS to work well (19x19, 13x13, 9x9)

template <int boardsize>
class board{
}

or the D equivalent...
class board(int boardsize){
}



More information about the computer-go mailing list