X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Fgnushogi.h;h=48408d75a5fc8e96c756cbb4f0eed558ce630f7f;hb=5ea6210573f345d63d7aafeb125726d3dc9b2238;hp=677d22c450865ad7a71f786f587bfa046b07e8b5;hpb=7c5f6ecf842604527da7c24a7ed873ef04bd616a;p=gnushogi.git diff --git a/gnushogi/gnushogi.h b/gnushogi/gnushogi.h index 677d22c..48408d7 100644 --- a/gnushogi/gnushogi.h +++ b/gnushogi/gnushogi.h @@ -6,6 +6,7 @@ * ---------------------------------------------------------------------- * Copyright (c) 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation + * Copyright (c) 2008, 2013, 2014 Yann Dirson and the Free Software Foundation * * GNU SHOGI is based on GNU CHESS * @@ -181,6 +182,8 @@ extern void movealgbr(short m, char *s); #define ROW_NAME(n) ('a' + NO_ROWS - 1 - n) #define COL_NAME(n) ('1' + NO_COLS - 1 - n) +#define ROW_NUM(c) ('a' + NO_ROWS - 1 - c) +#define COL_NUM(c) ('1' + NO_COLS - 1 - c) #if defined HASHFILE || defined CACHE # define PTBLBDSIZE (NO_SQUARES + NO_PIECES)