Hacker News new | past | comments | ask | show | jobs | submit login

https://github.com/timdetering/BaconBytes.StarTrek takes it in a different direction.

    2950  PRINT "TORPEDO TRACK:"
    2960  LET X=X+X[1]
    2970  LET Y=Y+X[2]
    2980  IF X<.5 OR X >= 8.5 OR Y<.5 OR Y >= 8.5 THEN 3420
    2990  LET V[4]=X
    2991  LET V[5]=Y
    2992  GOSUB 9000
Becomes...

    _2950: Console.WriteLine("TORPEDO TRACK:");
    _2960: X = X + _X[1];
    _2970: Y = Y + _X[2];
    _2980: if (X < .5 || X >= 8.5 || Y < .5 || Y >= 8.5) goto _3420;
    _2990: _V[4] = X;
    _2991: _V[5] = Y;
    _2992: _9000();



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: