[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OpenGo Suggestion as Re: Eureka
OpenGo suggestion:
As if we are not starving by sharing source code, I would like to suggest
that we start sharing some of our source code. By doing this, we should not
simply give away a whole program even if we have. We should give away
classes (suppose all of us were writting in C++ or Java) that are wrapped
for typical GO playing purpose.
Through this mailing list, we can discuss these future components, their
interface, and make them perfect (or nearly). The mailing list might have a
component base for the code update. Everyone used code from the component
base should claim he or she is using the component base.
I would believe people want to exploer the computer GO will get the most
benefit through sharing and co-development. Though it will not bebefit too
much to commercial GO program because FOST does not allow a GO progam in
competition uses components from other GO programs, if I remembered
correctly.
I would like to share the first piece code which is the constant list of my
prototype GO program:
#ifndef GoConstantH
#define GoConstantH
// --------------------------------------------------------
// GO constants
// --------------------------------------------------------
// Stone Color as Integer
// --------------------------------------------------------
const int BLACK = 1;
const int EMPTY = 0;
const int WHITE = -1;
// --------------------------------------------------------
// Stone Color as char
// --------------------------------------------------------
const char CBLACK = '@'; // B
const char CWHITE = 'O'; // W
const char CEMPTY = '+'; // E
const char CMOVE = 'X'; // Move response
const char CANYB = 'b'; // B|E
const char CANYW = 'w'; // W|E
const char CSTONE = '?'; // B|W
const char CANY = '*'; // B|W|E
// --------------------------------------------------------
// System Constants
// --------------------------------------------------------
const int MAXLENGTH = 361;
const int MAXGROUP = 128;
const int MAXSIZE = 19; //board size
const int CONSIZE = 10; //quarter board size
// --------------------------------------------------------
#endif
Weimin
>> Give away the source code and the income stops, so development will stop.
>
>I disagree. What about all free software we have?
>I'm not saying that everyone should publish the source code, but
>for many people it's possible to do so without starving.
>
>bye
> Rafael Caetano <rcaetano@xxxxxxxxxxxxxxxxx>