Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/mty-makai/mty.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 206 by notanpe, Sat Aug 16 13:11:14 2008 UTC revision 207 by notanpe, Sun Aug 17 00:35:36 2008 UTC
# Line 103  struct DT *dtidx[0x100 + 1]; Line 103  struct DT *dtidx[0x100 + 1];
103    
104  /* MAKAI start */  /* MAKAI start */
105  int     special = 0;  int     special = 0;
106  #define ST_ALLN 1    /* 全数 */  #define ST_ALLN 1      /* 全数 */
107  #define ST_NIKO 1<<1 /* 二構 */  #define ST_NIKO 1<<0x1 /* 二構 */
108  #define ST_BUOO 1<<8 /* ぶお */  #define ST_BUOO 1<<0x8 /* ぶお */
109  #define ST_DOSU 1<<9 /* 怒数 */  #define ST_DOSU 1<<0x9 /* 怒数 */
110    #define ST_HREN 1<<0xd /* 飛連 */
111    
112  void  void
113  comment( str )  comment( str )
# Line 119  char   *str; Line 120  char   *str;
120       case '1': special |= ST_NIKO; break;       case '1': special |= ST_NIKO; break;
121       case '8': special |= ST_BUOO; break;       case '8': special |= ST_BUOO; break;
122       case '9': special |= (ST_DOSU | ST_ALLN); break;       case '9': special |= (ST_DOSU | ST_ALLN); break;
123         case 'd': special |= ST_HREN; break;
124      }      }
125     }     }
126    }    }
# Line 1376  checkSpecial( trip, kind ) Line 1378  checkSpecial( trip, kind )
1378  char    *trip;  char    *trip;
1379  unsigned char   *kind;  unsigned char   *kind;
1380  {  {
1381      /* 飛連関連のコードは、セロリン ◆Celeron/rc 作 */
1382      if ( special & ST_HREN ) {
1383       /* 飛連 */
1384       int  w, x = 0, y = 0;
1385    
1386       for ( w = 0; w < TRIP_LEN; w++ ) {
1387        if ( trip[w] == trip[0] ) x += 1;
1388        if ( trip[w] == trip[1] ) y += 1;
1389        if ( x >= 8 || y >= 8 ) {
1390         strcpy( kind, "飛" );
1391         return( tfp );
1392        }
1393       }
1394      }
1395    
1396    if ( special & ST_BUOO ) {    if ( special & ST_BUOO ) {
1397     /* ぶお [A-Za-z]aoo[A-Za-z]uoo$ */     /* ぶお [A-Za-z]aoo[A-Za-z]uoo$ */
1398     if ( trip[3] == 'a' && trip[4] == 'o' && trip[5] == 'o' &&     if ( trip[3] == 'a' && trip[4] == 'o' && trip[5] == 'o' &&
# Line 1620  main(int argc, char *argv[]) Line 1637  main(int argc, char *argv[])
1637     if ( special & ST_BUOO ) {     if ( special & ST_BUOO ) {
1638      printf( "ぶお " );      printf( "ぶお " );
1639     }     }
1640       if ( special & ST_HREN ) {
1641        printf( "飛連 " );
1642       }
1643     if ( special ) {     if ( special ) {
1644      printf( "オン!\n" );      printf( "オン!\n" );
1645     } else {     } else {

Legend:
Removed from v.206  
changed lines
  Added in v.207

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26