Author Topic: Brain**** Roguelikes?  (Read 9453 times)

guest509

  • Guest
Brain**** Roguelikes?
« on: October 24, 2012, 01:15:46 AM »
http://en.wikipedia.org/wiki/Brain****

  Are there any roguelikes written in Brainfuck languange? It looks possible...

wire_hall_medic

  • Rogueliker
  • ***
  • Posts: 160
  • Karma: +0/-0
    • View Profile
Re: Brain**** Roguelikes?
« Reply #1 on: October 24, 2012, 06:57:48 AM »
It's like someone looked at assembly and decided it was too high level . . .

Eudoxus

  • Newcomer
  • Posts: 20
  • Karma: +0/-0
    • View Profile
    • Email
Re: Brain**** Roguelikes?
« Reply #2 on: November 10, 2012, 04:46:24 PM »
There's a basic to brainfuck compiler (http://esolangs.org/wiki/BFBASIC) that would make such a project completely doable.  But then maybe that's cheating...

Quendus

  • Rogueliker
  • ***
  • Posts: 447
  • Karma: +0/-0
  • $@ \in \{1,W\} \times \{1,H\}$
    • View Profile
    • Klein Roguelikes
Re: Brain**** Roguelikes?
« Reply #3 on: November 10, 2012, 05:31:52 PM »
I think the nearest to that we have is an implementation of Hunt the Wumpus in Befunge: http://www.stephensykes.com/wumpus.bef

Slash

  • Creator of Roguetemple
  • Administrator
  • Rogueliker
  • *****
  • Posts: 1203
  • Karma: +4/-1
    • View Profile
    • Slashie.net
    • Email
Re: Brain**** Roguelikes?
« Reply #4 on: November 10, 2012, 07:08:42 PM »
Reminds me of the 1KBRL competition :)

import sz.csi.jcurses.*;class D{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,inty,char h){j.print(x,y,Math.abs(a-)+Math.abs(b-y)<7?h:' ',1+v%13);}public static void main(String[]p){new D();}D(){j.cls();for(;;){if(q==a&w==b){m=new boolean[20][20];for(i=0;++i<20;){m[r()][r()]=m[0]=m[19]=m[0]=m[19]=true;}q=r();w=r();a=r();b=r();o=r();p=r();v++;m[q][w]=m
  • [p]=false;}if(o==a&p==b){o=40;p=3;r++;}d=-1;while(d++<19){c=-1;while(c++<19)a(c,d,m[c][d]?'#':'.');}j.print(2,22,"LCK L"+v+"E"+e+"R"+r+" ,7);j.print(a,b,"@",12);a(q,w,'>');a(o,p,'%');a(k,l,'&');i=j.inkey().code;d=s[i%4];c=s[4+i%4];if(a+d==k&b+c==l){if(r()>8){k=r();l=r();}}else if(!m[a+d][b+c]){a+=d;b+=c;}f=Integer.signum(a-);h=Integer.signum(b-l);if(k+f==a&l+h==b)e-=5;else if(e%(5-(int)(v/4.5d))==0&!m[k+f][l+h]){k+=f;l+=h;}if(--e<0|v>20)break;}j.print(2,23,r>9?"WON":"DIE",4);j.waitKey(40);}JCursesConsoleInterface j=newJCursesConsoleInterface();}


#include<stdlib.h>
#define F(n)for(j=0;j<n;j++)
#define r rand()
int main(){int x,s=46,n,i,j,z=77,l[z];char m[z*s],h[z];initscr();raw();F(z*s)j[m]=35;F(s)for(j[l]=i=(r%4+3)*z+(n=r%17*z+r%s+z);n<=i;n+=z)for(x=n;x<=n+j/2;m[++x]=s);F(9)l[j][m]=z,j[h]=2;m[*l]=64;*h=5;l[j][m]=62;F(z)x=n=l[i++,i%=9];if(i)!i[h]||*l^(n+=r%3+r%3*z+~z)||--*h?0:abort();else{F(25)mvaddnstr(j,i,m+j*z,z);j=s-getch();m[n+=j/3*z-j%3+153]^62||main();F(9)l[j+1]^n||--h[j+1]||n[m]--;}n[m]^s||m[l=n]=x[m],x[m]=s);}}

TheCreator

  • Rogueliker
  • ***
  • Posts: 370
  • Karma: +0/-0
    • View Profile
    • Fame
    • Email
Re: Brain**** Roguelikes?
« Reply #5 on: November 11, 2012, 08:38:44 AM »
Yeah, that could be fun... And another excuse for not making a real RL :).
Fame (Untitled) - my game. Everything is a roguelike.

Brigand

  • Rogueliker
  • ***
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Brain**** Roguelikes?
« Reply #6 on: January 03, 2013, 06:05:43 PM »
Instructor in my AI class had us look at a language called APL:

http://en.wikipedia.org/wiki/APL_(programming_language)

It's apparently actually used in some industry (insurance? really?), but requires a special keyboard. Scroll down and look at some of the examples and you will be reminded of hieroglyphics.

(Sorry if this is common knowledge to everyone - I just recently heard about it and found it pretty odd.)
« Last Edit: January 03, 2013, 06:08:10 PM by Brigand »

guest509

  • Guest
Re: Brain**** Roguelikes?
« Reply #7 on: January 04, 2013, 04:33:01 PM »
  Wow, that language is actually used. Astounding. Special keyboard? Man!