FGALEL 02 /RE:10818 RE^5:オセロプログラム大会  こんにちは、神野遊夢さん 》A:\>dososys ToshikiMind Black-rand (リターン) いやぁ、はまった、はまった。大文字と小文字を区別するということがわからな かったもので、 》A:\>dososys toshikimind black-rand (リターン) としていたのですよ。 お陰様で、無事、対戦させることができました。 ということで、私の思考(しない)ルーチンをのっけときます。 #ああっ、ぶたないでぇ --------------------------------------------------------------- #include #include "osys.h" /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 例1:The First ListLength = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ int selpos_1st( const SPositionList *list, int color ) { return 0; } /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = The End of PositionList = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ int selpos_last( const SPositionList *list, int color ) { return list->length-1; } /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 思考関数(人間が) 思いっきり手抜きバージョン 画面表示はおかしいし、scanf なんて使っているし エラーチェックすらしてないし・・・ = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ int selpos_fakecomp( const SPositionList *list, int color ) { int i; printf("\x1b[15;0H"); for(i=0;ilength;i++) printf("%d:x=%d,y=%d\n",i,list->position[i].x,list->position[i].y); scanf("%d",&i); return i; } ---------------------------------------------------------------