On 12/05/2015 16:58, Jason House wrote:
Michi's source is more than 540 lines. I've wondered about trying to
split the source into 3 pieces:
- UI/glue code not in the line count
- Board implementation
- Core playout/search code
I imagine that would allow easier customization of the board
implementation... Both in python or in ports to other languages.
Hi Jason,
I won't speak for Petr Baudis, but he spoke of 540 *executable* lines of
python.
For michi-c, I discarded in the line count :
- all blank lines or lines that contain only comments,
- all lines with only one { or } in it,
- data tables,
- code dedicated to debug (as in debug.c)
So, indeed, the total line count for all the files is larger than 1300
(2621 lines actually).
For michi-c, I already made a separate file for the pattern code
(patterns.c), for some debug code (debug.c) and prepare to make another
separate file board.c for the fast board implementation.
Actually, the michi.py file already contains well separated components
even if they are present in the same file (and one single file also has
some advantages for a short program).
Best,
Denis
_______________________________________________
Computer-go mailing list
[email protected]
http://computer-go.org/mailman/listinfo/computer-go