Index: score_memo.txt ================================================================== --- score_memo.txt +++ score_memo.txt @@ -1,26 +1,26 @@ contest1 212! contest2 280? contest3 275! contest4 561? contest5 1281? -contest6 737 +contest6 737 // 一度通り過ぎるとふさがってしまう曲がり道 contest7 867? -contest8 1245 +contest8 1245 // 無理ゲー contest9 3042? -contest10 2076 -flood1 569 +contest10 2076 // "λの上に岩" トラップが複数 +flood1 569 // 崩すの怖がりすぎ & 一直線に並んでるのに真ん中から取るのはどうなの flood2 280? -flood3 802 -flood4 970 +flood3 802 // 溺死 +flood4 970 // むずかしい岩崩し flood5 561? -trampoline1 291 +trampoline1 291 // むずかしい岩崩し trampoline2 1728? -trampoline3 698 +trampoline3 698 // "上に岩" ワープゾーン版 beard1 856? -beard2 2792 -beard3 811 -beard4 677 -beard5 665 +beard2 2792 // 崩すの怖がりすぎて間に合わなくなって溺死 +beard3 811 // 無理ゲー:速攻で髭刈らないといけない +beard4 677 // 岩が落ちてきてデッドエンド +beard5 665 // これクリアできるの horock1 333 horock2 235 horock3 1542 Index: src/Makefile ================================================================== --- src/Makefile +++ src/Makefile @@ -1,10 +1,15 @@ # To build, the following packages are needed. -# wget http://ftp.digitalmars.com/dmd_2.059-0_i386.deb -# sudo apt-get install gcc gcc-multilib -# sudo pkg -i dmd_2.059-0_i386.deb +# $ wget http://ftp.digitalmars.com/dmd_2.059-0_i386.deb +# $ sudo apt-get install gcc gcc-multilib +# $ sudo pkg -i dmd_2.059-0_i386.deb +# +# Optional GUI is Windows only. Need to install DFL (http://github.com/Rayerd/dfl). -all: +cui: dmd -O -release -inline -oflifter main.d driver.d game.d output.d solver.d util.d gui: - dmd -O -release -inline -ofgui_lifter gui_main.d driver.d game.d output.d solver.d util.d + dmd -O -release -inline -ofgui gui_main.d gui.d driver.d game.d output.d solver.d util.d + +clean: + rm *.obj *.o *.exe *.deps Index: src/gui.d ================================================================== --- src/gui.d +++ src/gui.d @@ -57,10 +57,11 @@ this.colors['#'] = this.colors['.'] = Color(255,191,127); this.colors['*'] = this.colors['@'] = Color(255,127,127); this.colors['R'] = Color(128,128,0); + this.colors['r'] = Color(100,128,255); this.colors['d'] = Color(255,0,0); this.colors['\\'] = this.colors['L'] = this.colors['O'] = Color(127,255,127); this.colors['w'] = Color(204,229,255); @@ -72,10 +73,11 @@ this.render['*'] = "✹"; this.render['@'] = "❁"; this.render['.'] = "♒"; this.render['\\'] = "λ"; this.render['R'] = "☃"; + this.render['r'] = "☃"; this.render['d'] = "☠"; this.render['L'] = "☒"; this.render['O'] = "☐"; this.render['W'] = "ꔣ"; this.render['!'] = "✄"; @@ -102,12 +104,12 @@ for(int y=1; y<=g.map.H; ++y) for(int x=1; x<=g.map.W; ++x) { Rect r = Rect(cell*(x-1), scrH-cell*y, cell, cell); char c = g.map[y,x]; if( c != ' ' ) { - if( c == 'R' && g.dead ) - c = 'd'; + if( c == 'R' ) + c = (g.dead ? 'd' : g.cleared ? 'r' : 'R'); graphicContext.drawText(this.render[c], font, this.colors[c], r); } } // Update textual info.