<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Evil-Eyes</title>
	<atom:link href="http://www.cgang.tk/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cgang.tk/blog</link>
	<description>/* I believe I can fly */</description>
	<lastBuildDate>Fri, 03 Sep 2010 15:01:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>a day</title>
		<link>http://www.cgang.tk/blog/archives/254</link>
		<comments>http://www.cgang.tk/blog/archives/254#comments</comments>
		<pubDate>Fri, 03 Sep 2010 15:01:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Evil-Eyes' Diary]]></category>

		<guid isPermaLink="false">http://www.cgang.tk/blog/?p=254</guid>
		<description><![CDATA[心情很郁闷，吃晚饭都他妈的狗日的混混抢位子，然后那仔就神经不对了，还叫人来，宗明也不帮我，只有打了几下就跑了，真他妈的倒霉透顶。。。
不过以后这种事也不会碰到，现在只想在博客了发泄一下，god bless me 。
]]></description>
			<content:encoded><![CDATA[<p>心情很郁闷，吃晚饭都他妈的狗日的混混抢位子，然后那仔就神经不对了，还叫人来，宗明也不帮我，只有打了几下就跑了，真他妈的倒霉透顶。。。<br />
不过以后这种事也不会碰到，现在只想在博客了发泄一下，god bless me 。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cgang.tk/blog/archives/254/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RP大爆发</title>
		<link>http://www.cgang.tk/blog/archives/252</link>
		<comments>http://www.cgang.tk/blog/archives/252#comments</comments>
		<pubDate>Tue, 13 Jul 2010 15:18:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Studies]]></category>
		<category><![CDATA[Month-Test]]></category>
		<category><![CDATA[rp]]></category>
		<category><![CDATA[邓飞]]></category>

		<guid isPermaLink="false">http://www.cgang.tk/blog/?p=252</guid>
		<description><![CDATA[
真的是rp大爆发, 居然月考考了全年级第NINE
不过以后没有这么高的rp了
ps 好像邓飞越来越看我不爽了&#8230;
]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://farm5.static.flickr.com/4078/4793725870_2012493b56.jpg" alt="NINE" width="280" height="280" /></p>
<p>真的是rp大爆发, 居然月考考了全年级第NINE</p>
<p>不过以后没有这么高的rp了</p>
<p>ps 好像邓飞越来越看我不爽了&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cgang.tk/blog/archives/252/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snack3</title>
		<link>http://www.cgang.tk/blog/archives/251</link>
		<comments>http://www.cgang.tk/blog/archives/251#comments</comments>
		<pubDate>Sat, 10 Jul 2010 10:45:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Informatics]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[无聊]]></category>

		<guid isPermaLink="false">http://www.cgang.tk/blog/?p=251</guid>
		<description><![CDATA[省选挂了, 没事把上次的贪吃蛇改成双人版,
不过好像还是不怎么好玩&#8230;
下载地址: http://cgangee.googlecode.com/files/Snake3.zip

{************************************************}
{                                                }
{     ]]></description>
			<content:encoded><![CDATA[<p>省选挂了, 没事把<a href="http://www.cgang.tk/blog/archives/198">上次的贪吃蛇</a>改成双人版,<br />
不过好像还是不怎么好玩&#8230;<br />
下载地址: <a href="http://cgangee.googlecode.com/files/Snake3.zip">http://cgangee.googlecode.com/files/Snake3.zip</a></p>
<pre class="brush: delphi;">
{************************************************}
{                                                }
{               C Gang Snack3                    }
{                                                }
{                by cgangee                      }
{      The Second Middle School, Chenzhou        }
{                                                }
{************************************************}

program Snack;

uses crt;

const maxx=23;
      maxy=39;
      maxn=819;
      up=1;
      down=2;
      left=3;
      right=4;

type snake=record head,tail,color,direc,score:longint;
                  body:array[0..maxn]of record x,y:longint; end;
           end;

var screen:array[0..maxx,0..maxy]of record data:char; color:longint; end;
    speed:longint;
    p1,p2:snake;
    key:char;

procedure get_food;
var x,y:longint;
begin
     repeat
           x:=random(maxx+1);
           y:=random(maxy+1);
     until screen[x,y].data=#32;
     screen[x,y].data:=#12;
     screen[x,y].color:=magenta;
end;

procedure init;
var i,j,k:longint;
begin
     assign(input,'speed.txt'); reset(input);
     readln(speed); close(input);
     randomize;
     textmode(co40);
     textbackground(black);
     for i:=0 to maxx do
       for j:=0 to maxy do screen[i,j].data:=#32;

     p1.head:=0;
     p1.tail:=0;
     p1.color:=white;
     p1.direc:=right;
     p1.score:=0;
     p1.body[0].x:=0;
     p1.body[0].y:=0;
     screen[0,0].data:=#219;
     screen[0,0].color:=p1.color;

     p2.head:=0;
     p2.tail:=0;
     p2.color:=blue;
     p2.direc:=left;
     p2.score:=0;
     p2.body[0].x:=maxx;
     p2.body[0].y:=maxy;
     screen[maxx,maxy].data:=#219;
     screen[maxx,maxy].color:=p2.color;
     get_food;
end;

procedure print(data:string; color:longint);
begin
     textcolor(color);
     write(data);
     textcolor(7);
end;

procedure update_screen;
var i,j:longint;
begin
     clrscr;
     for i:=0 to maxx do
       for j:=0 to maxy do print(screen[i,j].data,screen[i,j].color);
     write('P1: ',p1.score,'   P2: ',p2.score);
end;

procedure printf(s:string);
var i,j:longint;
begin
     print(s[1],red);
     for i:=2 to length(s) do
     begin
          if s[i-1]=' ' then print(s[i],red)
          else print(s[i],white);
     end;
end;

procedure move(var p:snake; e:longint);
var last:longint;
begin
     last:=p.head;
     p.head:=(p.head+1)mod maxn;
     p.body[p.head]:=p.body[last];
     case p.direc of
       up:p.body[p.head].x:=(p.body[p.head].x+maxx-1)mod maxx;
       down:p.body[p.head].x:=(p.body[p.head].x+1) mod (maxx+1);
       left:p.body[p.head].y:=(p.body[p.head].y+maxy-1)mod maxy;
       right:p.body[p.head].y:=(p.body[p.head].y+1)mod (maxy+1);
     end;
     case screen[p.body[p.head].x,p.body[p.head].y].data of
       #12:begin
                screen[p.body[p.head].x,p.body[p.head].y].data:=#219;
                screen[p.body[p.head].x,p.body[p.head].y].color:=p.color;
                if e=1 then inc(p1.score,9) else inc(p2.score,9);
                get_food;
           end;
       #32:begin
                screen[p.body[p.head].x,p.body[p.head].y].data:=#219;
                screen[p.body[p.head].x,p.body[p.head].y].color:=p.color;
                screen[p.body[p.tail].x,p.body[p.tail].y].data:=#32;
                p.tail:=(p.tail+1)mod maxn;
           end;
       #219:begin
                 clrscr;
                 gotoxy(15,13);
                 print('G',red); print('ame ',white);
                 print('O',red); print('ver',white);
                 delay(2000);
                 clrscr; gotoxy(1,10);
                 printf('If you want to play again, please press ENTER');
                 writeln; writeln;
                 printf('Otherwise press ESC to terminate the program');
                 repeat key:=readkey; until (key=#13)or(key=#27);
                 if key=#27 then halt
                 else init;
            end;
     end;
end;

procedure next;
begin
     if random(1)=0 then
     begin move(p1,1); move(p2,2) end
     else begin move(p2,2); move(p1,1); end;
end;

begin
     init;
     while true do
     begin
          update_screen;
          if keypressed then
          begin
               key:=readkey;
               key:=upcase(key);
               case key of
                 #0:begin
                         key:=readkey;
                         case key of
                           #72:if p2.direc&lt;&gt;down then p2.direc:=up;
                           #80:if p2.direc&lt;&gt;up then p2.direc:=down;
                           #75:if p2.direc&lt;&gt;right then p2.direc:=left;
                           #77:if p2.direc&lt;&gt;left then p2.direc:=right;
                         end;
                    end;
                 'W':if p1.direc&lt;&gt;down then p1.direc:=up;
                 'S':if p1.direc&lt;&gt;up then p1.direc:=down;
                 'A':if p1.direc&lt;&gt;right then p1.direc:=left;
                 'D':if p1.direc&lt;&gt;left then p1.direc:=right;
                 #27:halt;
               end;
          end;
          next;
          delay(speed);
     end;
end.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cgang.tk/blog/archives/251/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用flickr快多了:-)</title>
		<link>http://www.cgang.tk/blog/archives/247</link>
		<comments>http://www.cgang.tk/blog/archives/247#comments</comments>
		<pubDate>Tue, 08 Jun 2010 10:42:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://www.cgang.tk/blog/?p=247</guid>
		<description><![CDATA[在http://www.quanpc.com/33813/EJB.aspx看到的

flickr的图片如果看不到，最简单的解决方法如下
目录：C:\Windows\System32\drivers\etc
打开hosts文件，在最后加上以下两行
76.13.18.78 farm3.static.flickr.com
76.13.18.79 farm5.static.flickr.com

flickr的图片总是只能看到一些, 该了hosts快多了
]]></description>
			<content:encoded><![CDATA[<p>在<a href="http://www.quanpc.com/33813/EJB.aspx">http://www.quanpc.com/33813/EJB.aspx</a>看到的</p>
<blockquote><p>
flickr的图片如果看不到，最简单的解决方法如下</p>
<p>目录：C:\Windows\System32\drivers\etc<br />
打开hosts文件，在最后加上以下两行</p>
<p>76.13.18.78 farm3.static.flickr.com<br />
76.13.18.79 farm5.static.flickr.com
</p></blockquote>
<p>flickr的图片总是只能看到一些, 该了hosts快多了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cgang.tk/blog/archives/247/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu 10.4 LTS</title>
		<link>http://www.cgang.tk/blog/archives/245</link>
		<comments>http://www.cgang.tk/blog/archives/245#comments</comments>
		<pubDate>Sat, 05 Jun 2010 19:58:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Evil-Eyes' Diary]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[电脑]]></category>

		<guid isPermaLink="false">http://www.cgang.tk/blog/?p=245</guid>
		<description><![CDATA[放假没事在老爸的电脑上装了一个ubuntu 10.4

]]></description>
			<content:encoded><![CDATA[<p>放假没事在老爸的电脑上装了一个ubuntu 10.4</p>
<p><a title="ubuntu 10.4 LTS" rel="lightbox 2" href="http://farm5.static.flickr.com/4051/4681932360_941e7aeb14_b.jpg"><img src="http://farm5.static.flickr.com/4051/4681932360_941e7aeb14_b.jpg" alt="" width="491" height="369" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cgang.tk/blog/archives/245/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
