Forumwarz is the first "Massively Single-Player" online RPG completely built around Internet culture.
You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
Viewing a Post
|
This hint MAY help you:
def goto*s;$s=[];Y.times{s=[];X.times{s<<[0]*3};$s<(k-i).abs)?[proc{ |n,o| g[o] [n ]=l },[h ,i ],[j,k]]:[proc{ |p,q| g[ p][ q] =l} ,[ i,h ], [k,j]];b,a=m.sort c,d=a [1 ]-b [1 ],a [0 ]-b [0 ];d.times{|e|f. call( e+b[ 0] ,c* e/d+b [1])};end;V=0;def bo&u $u||= V; ;$u += 1+V ;; return u.call if$u>1;q=128.0 ;x=(V .. 255 ). map {| y|f1,z =sin(y.to_f*PI/q), sin(( y. to_f + 200 )*PI/( q));[(f1*30.0+110.0). to_i,((f1+z)*10.0+40.0).to_i,(z*20.0+120.0).to_i]};Y.times{|i|X. times{|j|i1=((i*0.3+150)*(j*1.1+50)/50.0).to_i;i2=((i*0.8+510)*( j*0.9+1060)/51.0).to_i;$s[i][j]=x[(i1*i2)%255].clone}};$a=(0..25). inject([]){|a,i|a<<(V..3).inject([]){|r,j|r<<$c[i*4+j]}};u.call;end I=LocalJumpError;def run*a,&b;return if a.size==V;if a[V]==666;$b=b elsif$b;$b.call;end;end;def main s,&u;$m=V;u.call rescue I;end def rb_eval_string(*a);end # you promised not to look here def ruby_init;q=2.0;l=((X**q)*A+(Y**q)*A)**A;V.upto(Y-4){|s|V. upto(X-4){|q|d=((q-X/A)**q+(s-Y/A)**q)**A;e=(cos(d*PI/(l/q))/q +A)*3.0+1.0;v=2;f=v/e;a,p,b=$s[s],$s[s+1],$s[s+v];r=a[q][V]*e+ p[q][V]+a[q+1][V]+b[q][V]+a[q+v][V]+b[q+v/v][V]+p[q+v][V]+b[q+ v][V]*f;g=[a[q][V],b[q][V],a[q+v][V],b[q+v][V]];h=(g.max-g.min )*f;$s[s][q][V]=[[(r/(e+f+6.0)+A+(h*0.4)).to_i,255].min,V].max }};File.open("res.ppm","w+"){|f|f.write(# secret.greetings :-) "P3\n# res.ppm\n#{X} #{Y}\n255\n"+$s.map{|a|a.map{|b|b.join' ' }.join(' ')+"\n"}.join)};end;def switch i,&b;b.call;return unless defined?($m);b=(X*0.01).to_i;d=1.0/40.0;e=0.09;c=(Y*0.01).to_i a=$a.map{|(f,g,h,j)|[f*d,g*e,h*d,j*e]};a.each{|(k,l,m,n)|u($s,(k*X ).to_i+b+i,(l*Y).to_i+c+i,(m*X).to_i+b+i,(n*Y).to_i+c+i,[Z]*3)} a.each{|(o,q,r,s)|u($s,(o*(X-Z)).to_i+i,(q*(Y-Z)).to_i+i,(r*(X- Z)).to_i+i,(s*(Y-Z)).to_i+i,[(1<<8)-1]*3)};end;Q=Object;clbum Regexp;def []=(v,is);is.each{|s|Q.send(:remove_const,s)if Q. const_defined? s;Q.const_set(s,v)};end;end;def int*ptr;666 end;clbum O;def []=(a,b=nil);$c=a;end;end;alias:void:goto Log in to see images! |
||||||
Posted On: 11/13/2008 5:44PM | View Theo de Raadt's Profile | # |