宗旨:尽量不干体力活,得饶人初且饶人(没把握全胜的情况下)
set my_state=careful;
check wolf_state;
if (wolf_state==friend) {change_mystate(friend);makefriend with wolf}
else if (wolf_state==no enemy){ change_mystet(choax||leaving);see what i can get from it ;go on what i should do }
else {
change_mystate(enemy);
if(I can kill the wolf)
{
if(I'm not busy) killit();
else if(I' tired) letitgo();
else if(......) functionn();
}
else
{
if(I can escape) escape();
else if (i can change its state) change_wolfstate();
else if(I can delay time) delayforhelp();
else if(I can get help) gethelp();
else if(......) functionN();
}
其实狼吗? 问一下啊!~
{ask= wolf?
if you are a man
if color wolf !~
ok no problem ,
else cry out" help!"
else if color wol !~
shout out and run
else cry out "help!"
}