盗版岩与酒

 找回密码
 注册
搜索
热搜: 活动 交友 discuz
查看: 4357|回复: 0

trad 领攀程序算法

[复制链接]
发表于 2005-10-25 21:40 | 显示全部楼层 |阅读模式
born from the simulation
关于“爬trad时你脑袋里想什么”的讨论,某哥们的回帖:

from rc.com by lishe

I am a noob, but here is my trad lead algorithm:

Check knots, belay;
Issue commands;
Find first placement off belay to avoid factor 2 fall;
Go;

while(!dead() && !done()) {
Climb();
Evaluate();
Breath();
}

boolean done() {
if (at belay ledge) return true;
if (at top) return true;
return false;
}
boolean dead() {
if( uncounscious || !breathing) return true;
return false;

}
Climb() {
Find best holds. Move each limb accordingly.

}
EvaluateSituation() {
if(oh shit?) print "Falling!";
else if(over my head?) print "Oh Shit!, off route"; downclimb;
else if(time to place gear? && goodplacements exist?) { place gear; }
else { findnextrestspot(); }
}
Breath{
take breath; hum a tune if scared;
}
findnextrestspot() {
Look for good holds; time to place gear should be at that spot;
}
FWC1146906902.jpg
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|盗版岩与酒 ( 京ICP备05053585号 )

GMT+8, 2024-11-29 07:03 , Processed in 0.091962 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表