Build a Simple Roguelike
C, 257 253 222 220

Uses system("cls") instead of curses (use system("clear") for Linux systems) and a clever algorithm to fit the map into an 8-digit number. Non-extended keys end the program, e.g. escape.

EDIT: Now also shows your hero below the map by using a&lt;230 instead of a&lt;132:

    ##
   ####
 ###  ###
 # #  # #
## #  # ##
   ####
  #    #
 ##    ##


Code:

a,p=14,w=11,X,Y;m(I){X=I%w-1,Y=I/w;return 70313263&gt;&gt;(Y&gt;5?w-Y:Y)*5+(X&gt;4?9-X:X)&amp;1;}main(){do{system("cls");a=a&amp;4?1:a&amp;2?-1:a&amp;8?-w:w;p+=!m(p+a)*a;for(a=0;++a&lt;230;)putch(a%w?a-p?m(a)*35:64:10);}while(a=getch()&gt;&gt;7?getch():0);}