FAQ's and Tips

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

FAQ's and Tips

Andreas Zieritz
As for an 'do it yourself' - programmer as me the best way to learn Netrexx
is to study code other people have written. I would therefore very much
appreciate if someone could send - maybe once a month - a short draft about
a specific problem (and their solution) in this forum (or directly by
E-Mail). This might be something like the Java Development Connection is
doing with Java.

Finally I encourage everyone with the same (very limited) experience in
programming like me to buy the 'netrexx-redbook'. Its really great and very
useful.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: FAQ's and Tips

kikuti
Andreas Zieritz wrote:

>
> As for an 'do it yourself' - programmer as me the best way to learn Netrexx
> is to study code other people have written. I would therefore very much
> appreciate if someone could send - maybe once a month - a short draft about
> a specific problem (and their solution) in this forum (or directly by
> E-Mail). This might be something like the Java Development Connection is
> doing with Java.
>
> Finally I encourage everyone with the same (very limited) experience in
> programming like me to buy the 'netrexx-redbook'. Its really great and very
> useful.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/*
Hi NetRexxers, Hi Andreas,

I just started writing my first NetRexx program for japanese chess.
Whoever interested in developement of the programming and help me in any
way, please e-mail me.
My knowledge of Neterxx now is "Hello World" sample program and "The
NetRexx Language" book.

[hidden email]
*/

/****************
my first NetRexx program.    1998.3.12  
 for Japanese chess.

the board is 9sqaures by 9.
captured pieces are reusable.
no castling, no en passant.
promotion is optional at the movement from or into:  three rows to the
opponets end.
no dropping(reusing )  the second pawn in the same file.
*****************/

options binary

class jc0001 public
         method main(s=String[]) static

        tdisplay()

method tdisplay() static


loop i=int 3 to int 13
        loop j=int 3 to int 13
                say initdata.board[i,j] + 10 '\-'
        end j
        say
end i

class initdata
properties public static

/* someone told me, program can run faster on 16 by 16 board.  I'm not
sure if it is true. */  
board= int[,] -
[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
[0,0,0,0,32,33,34,35,38,35,34,33,32,0,0,0], -
[0,0,0,0,10,37,10,10,10,10,10,36,10,0,0,0], -
[0,0,0,0,31,31,31,31,31,31,31,31,31,0,0,0], -
[0,0,0,0,10,10,10,10,10,10,10,10,10,0,0,0], -
[0,0,0,0,10,10,10,10,10,10,10,10,10,0,0,0], -
[0,0,0,0,10,10,10,10,10,10,10,10,10,0,0,0], -
[0,0,0,0,21,21,21,21,21,21,21,21,21,0,0,0], -
[0,0,0,0,10,26,10,10,10,10,10,27,10,0,0,0], -
[0,0,0,0,22,23,24,25,28,25,24,23,22,0,0,0], -
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: FAQ's and Tips

dIon Gillard/Multitask Consulting/AU
I'm happy to help with any problems...

kikuchi, hisashi wrote:

>
> Andreas Zieritz wrote:
> >
> > As for an 'do it yourself' - programmer as me the best way to learn Netrexx
> > is to study code other people have written. I would therefore very much
> > appreciate if someone could send - maybe once a month - a short draft about
> > a specific problem (and their solution) in this forum (or directly by
> > E-Mail). This might be something like the Java Development Connection is
> > doing with Java.
> >
> > Finally I encourage everyone with the same (very limited) experience in
> > programming like me to buy the 'netrexx-redbook'. Its really great and very
> > useful.
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> /*
> Hi NetRexxers, Hi Andreas,
>
> I just started writing my first NetRexx program for japanese chess.
> Whoever interested in developement of the programming and help me in any
> way, please e-mail me.
> My knowledge of Neterxx now is "Hello World" sample program and "The
> NetRexx Language" book.
>
> [hidden email]
> */
>
> /****************
> my first NetRexx program.    1998.3.12
>  for Japanese chess.
>
> the board is 9sqaures by 9.
> captured pieces are reusable.
> no castling, no en passant.
> promotion is optional at the movement from or into:  three rows to the
> opponets end.
> no dropping(reusing )  the second pawn in the same file.
> *****************/
>
> options binary
>
> class jc0001 public
>          method main(s=String[]) static
>
>         tdisplay()
>
> method tdisplay() static
>
> loop i=int 3 to int 13
>         loop j=int 3 to int 13
>                 say initdata.board[i,j] + 10 '\-'
>         end j
>         say
> end i
>
> class initdata
> properties public static
>
> /* someone told me, program can run faster on 16 by 16 board.  I'm not
> sure if it is true. */
> board= int[,] -
> [[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
> [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
> [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
> [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
> [0,0,0,0,32,33,34,35,38,35,34,33,32,0,0,0], -
> [0,0,0,0,10,37,10,10,10,10,10,36,10,0,0,0], -
> [0,0,0,0,31,31,31,31,31,31,31,31,31,0,0,0], -
> [0,0,0,0,10,10,10,10,10,10,10,10,10,0,0,0], -
> [0,0,0,0,10,10,10,10,10,10,10,10,10,0,0,0], -
> [0,0,0,0,10,10,10,10,10,10,10,10,10,0,0,0], -
> [0,0,0,0,21,21,21,21,21,21,21,21,21,0,0,0], -
> [0,0,0,0,10,26,10,10,10,10,10,27,10,0,0,0], -
> [0,0,0,0,22,23,24,25,28,25,24,23,22,0,0,0], -
> [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
> [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
> [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
> [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], -
> [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]]
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
> [hidden email]
> with the following message in the body of the note
> unsubscribe ibm-netrexx <e-mail address>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: FAQ's and Tips

kikuti
Your words are as encouraging as "Giant monster with iron club"

kikuti


Dion Gillard wrote:
>
> I'm happy to help with any problems...
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>