//ローグライクゲーム作ってやったぞ。
using System;using Microsoft.Xna.Framework;using Microsoft.Xna.Framework.Input
;using Microsoft.Xna.Framework.Graphics;namespace W{class G:Game{static void
Main(){new G().Run();}GraphicsDeviceManager g;SpriteBatch s;Texture2D t;Random
r=new Random();KeyboardState k,l;const int C=31;bool[]f=new bool[C*C];int x=1,
y=1,b;void I(){for(int i=0;i<C;i++)for(int j=0;j<C;j++)if(i==0||i==C-1||j==0||
j==C-1||(i%2==0&&j%2==0))f[i*C+j]=true;else f[i*C+j]=false;for(int j=2;j<C-1;j
+=2)switch(r.Next(4)){case 0:if(!f[2*C+j-1])f[2*C+j-1]=true;break;case 1:if(!
f[2*C+j+1])f[2*C+j+1]=true;break;case 2:if(!f[C+j])f[C+j]=true;break;case 3:if
(!f[3*C+j])f[3*C+j]=true;break;}for(int i=4;i<C-1;i+=2)for(int j=2;j<C-1;j+=2)
switch(r.Next(3)){case 0:if(!f[i*C+j-1])f[i*C+j-1]=true;break;case 1:if(!f[i*C
+j+1])f[i*C+j+1]=true;break;case 2:if(!f[(i+1)*C+j])f[(i+1)*C+j]=true;break;}}
G(){g=new GraphicsDeviceManager(this);I();Window.Title="1F";}protected
override void LoadContent(){s=new SpriteBatch(GraphicsDevice);t=new Texture2D(
GraphicsDevice,1,1,1,TextureUsage.None,SurfaceFormat.Color);t.SetData<int>(new