Output of file : SPINNER.R contained in archive : SPINNER.ZIP
/* Spinner */
/* */
/* Strategies: */
/* */
/* Movement: Square pattern as close to the border as possible */
/* to maximize the amount of time the robot moves at top speed. */
/* */
/* */
/* */
int range;
int angle;
int count;
int delta;
int resolution;
int var;
int backward_step;
/* main */
main(){
int speed;
int border;
angle=0;
backward_step=5;
speed=100;
resolution=10;
var=resolution;
border=155; /* Change movement border */
while (1) {

drive (180,speed); /* go west, young robot */
while (loc_x()>border && speed() > 0 ) attack(); /* Keep-a-goin */
drive (180,0); /* STOP */
while (speed() > 49) attack(); /* wait */

drive (90,speed); /* north */
while (loc_y()<1000-border && speed() > 0 ) attack();
drive (90,0);
while (speed() > 49) attack();

drive (0,speed); /* east */
while (loc_x()<1000-border && speed() > 0 ) attack();
drive (0,0);
while (speed() > 49) attack();

drive (270,speed); /* south */
while (loc_y()>border && speed() > 0 ) attack();
drive (270,0);
while (speed() > 49) attack();

}; /* forever */
}
attack(){
int cannon_yet;
angle+=2*var;
cannon_yet=0;
while (!cannon_yet && (range = scan(angle,var ))>0 ) {
if (range<740) cannon_yet=cannon(angle,range);
else cannon_yet=1; }
if (cannon_yet) {
if (var>1) {
var>>=1;
angle-=3*var;
count=0; }
else angle-=2*var;
}
else {
if ((++count)==2) { var=resolution;
angle-=backward_step*var;
}
}
}



### 3 Responses to “Category : A Collection of Games for DOS and WindowsArchive   : SPINNER.ZIPFilename : SPINNER.R”

1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/