LUCK 3.1, Day 4 of 1

Just a quick bugfix, WIN/LOSE message was not being displayed correctly.

LUCK 3.1 - Source Code Included
LUCK 3.1 - Source Code Included


Here, from

Source Code

import sz.csi.jcurses.*;class E{int a,b,c,d,k,l,o,p,q,w,
v,r,i,e=600,f,h;boolean m[][];int r(){return(int)(
Math.random()*17+1);}int[]s=new int[]{0,0,-1,1,-1,1,0,0}
;void a(int x,int y,char h){j.print(x,y,Math.abs(a-x)+
Math.abs(b-y)<7?h:' ',1+v%13);}public static void main(
String[]p){new E();}E(){j.cls();for(;;){if(q==a&w==b){m=
new boolean[20][20];for(i=0;++i<20;){m[r()][r()]=m[0][i]
d]?'#':'.');}j.print(2,22,"L"+v+" E"+e+" R"+r+" ",7);j.
r()>8){k=r();l=r();}}else if(!m[a+d][b+c]){a+=d;b+=c;}f=
==b)e-=5;else if(e%(5-(int)(v/4.5d))==0&!m[k+f][l+h]){k
"WON":"DIE",4);j.waitKey(40);}JCursesConsoleInterface j=
new JCursesConsoleInterface();}


Aprox. Work Time: 11:00 (10:00+1:00)
Source Files: 1
LOC: 1
SLOC-L: 15

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s