This makes Pachi one step away from compiling as a c++ project.
Started as a crazy hack to see if Pachi could be made to compile in c++.
I'm not turning it into a c++ project, but i think i like it. Opens up other crazy hacks and i like the idea of being able to compile it in c++ once in a while for extra type checking (c++ can distinguish between enums and ints for example).
Also took the opportunity to revisit low-level apis:
coord functions don't need board argument to get board size.
use init functions instead of designated intializers, cleaner and c++ doesn't support them.
typedefs instead of structs as much as possible
typed malloc() functions
Needless to say the diffs are huge, glad nobody is reviewing this =)
This makes Pachi one step away from compiling as a c++ project.
Started as a crazy hack to see if Pachi could be made to compile in c++. I'm not turning it into a c++ project, but i think i like it. Opens up other crazy hacks and i like the idea of being able to compile it in c++ once in a while for extra type checking (c++ can distinguish between enums and ints for example).
Also took the opportunity to revisit low-level apis:
Needless to say the diffs are huge, glad nobody is reviewing this =)