【開催】囚人のジレンマ大会
■ このスレッドは過去ログ倉庫に格納されています
0113デフォルトの名無しさん
NGNG傷つけられたプライドは10倍にして返すのよ、
ヤマアラシのジレンマ、でもあたしを見てぇーさん
*/
int aska( int round, int *own, int *opposite, int who )
{
static int foo = 0, bar = 0, coo = 0, AreYouMe = 0;
if ( who == 3 ) { foo ++; return 0; }
if ( foo == 2 ) AreYouMe = 1;
if ( who != 3 ) foo = 0;
if ( AreYouMe == 1 ) return 0; /* 自分とは仲良し。誰もあたしのことを解ってくれない。 */
if ( round == 0 ) return 1; /* 「あんたバカぁ?」と先制攻撃 */
if ( opposite[ round - 1 ] == 0 )
if ( opposite[ round - 2 ] == 0 )
if ( opposite[ round - 3 ] == 0 )
if ( opposite[ round - 4 ] == 0 )
bar = bar + 5; /* 近寄られると反発 */
if ( opposite[ round - 1 ] == 1 )
if ( opposite[ round - 2 ] == 1 )
if ( opposite[ round - 3 ] == 1 )
if ( opposite[ round - 4 ] == 1 )
bar = bar - 20; /* 相手にしてもらえないと「あたしを見てぇ!」 */
if ( opposite[ round - 1 ] == 1 ) bar = bar + 10; /* 敏感に反応。10倍返し */
if ( bar > 0 ) { bar --; return 1; }
return 0;
}
■ このスレッドは過去ログ倉庫に格納されています