【開催】囚人のジレンマ大会
■ このスレッドは過去ログ倉庫に格納されています
0166デフォルトの名無しさん
NGNG>>囚人関数
int func_name(int round, int *own, int *opposite, int who);
int round:現在のラウンド数
int *own:これまでの自分の手
int *opposite:これまでの相手の手
int who:個人ID(?)
返り値:0=協調,1=裏切り(※必須)
>>サービスファンクション
void talk( int who, char *mes ); // 自分のキャラに発言させる
int who:個人ID
char *mes:発言内容
返り値:無し
int _random_table(int round); // 乱数取得
int round:ラウンド数
返り値:乱数
■ このスレッドは過去ログ倉庫に格納されています