<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2619433527858338411</id><updated>2011-04-22T09:38:12.007+08:00</updated><title type='text'>Tom Ho's Program Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tomhoprogram.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619433527858338411/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tomhoprogram.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>K.W.Ho (Tom)</name><uri>http://www.blogger.com/profile/02283673477708364633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://farm2.static.flickr.com/1025/691252080_a2ec760987.jpg?v=0'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2619433527858338411.post-3336768366188452996</id><published>2007-11-29T01:24:00.001+08:00</published><updated>2008-12-10T11:14:04.145+08:00</updated><title type='text'>ISM001 Assignment 2~The Fighters' Universe</title><content type='html'>Introduction:&lt;br /&gt;This game is a upper-level version of "Simple Text Fighter". Basicly, the rule is similar to the "Simple Text Fighter", except:&lt;br /&gt;(1) The initial power of each player is 10;&lt;br /&gt;(2) In this game, two more players "Boss Player" have created;&lt;br /&gt;(3) Boss players are more resistant to attacks, they will gain double the power difference on win and lose half the power difference on loss;&lt;br /&gt;(4) In each round of fight, two players will be selected to fight by random, if the selected players are same or is dead, random again;&lt;br /&gt;(5) There is a chance that the power to be reduced is not an integer. In that case, take the integer part (e.g. 4.5 is rounded down to 4);&lt;br /&gt;(3) At the begin and the last of fight, it will show the power of all players.&lt;br /&gt;&lt;br /&gt;The java source code of The Fighters' Universe:&lt;br /&gt;-- Player: &lt;a href="http://hk.geocities.com/tomgundam2004/Player.java"&gt;http://hk.geocities.com/tomgundam2004/Player.java&lt;/a&gt;&lt;br /&gt;-- BossPlayer: &lt;a href="http://hk.geocities.com/tomgundam2004/BossPlayer.java"&gt;http://hk.geocities.com/tomgundam2004/BossPlayer.java&lt;/a&gt;&lt;br /&gt;-- FightersUniverse: &lt;a href="http://hk.geocities.com/tomgundam2004/FightersUniverse.java"&gt;http://hk.geocities.com/tomgundam2004/FightersUniverse.java&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here are the java file and class file: &lt;a href="http://www.sendspace.com/file/lfqqgo"&gt;http://www.sendspace.com/file/lfqqgo&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The screenshot of the java output:&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_iWEF9GNiCWg/R2TzT3kWYNI/AAAAAAAAAGw/5ejvcWHJyGU/s1600-h/2.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5144504197023424722" style="CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_iWEF9GNiCWg/R2TzT3kWYNI/AAAAAAAAAGw/5ejvcWHJyGU/s400/2.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_iWEF9GNiCWg/R2TzUHkWYOI/AAAAAAAAAG4/OWd1syUTN2Q/s1600-h/3.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5144504201318392034" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_iWEF9GNiCWg/R2TzUHkWYOI/AAAAAAAAAG4/OWd1syUTN2Q/s400/3.JPG" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2619433527858338411-3336768366188452996?l=tomhoprogram.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tomhoprogram.blogspot.com/feeds/3336768366188452996/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2619433527858338411&amp;postID=3336768366188452996' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619433527858338411/posts/default/3336768366188452996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619433527858338411/posts/default/3336768366188452996'/><link rel='alternate' type='text/html' href='http://tomhoprogram.blogspot.com/2007/11/ism001-assignment2-fighters-universe.html' title='ISM001 Assignment 2~The Fighters&apos; Universe'/><author><name>K.W.Ho (Tom)</name><uri>http://www.blogger.com/profile/02283673477708364633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://farm2.static.flickr.com/1025/691252080_a2ec760987.jpg?v=0'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_iWEF9GNiCWg/R2TzT3kWYNI/AAAAAAAAAGw/5ejvcWHJyGU/s72-c/2.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619433527858338411.post-3059444583868661313</id><published>2007-11-29T01:21:00.000+08:00</published><updated>2008-12-10T11:14:04.437+08:00</updated><title type='text'>ISM001 Project~Fractal generator</title><content type='html'>&lt;em&gt;&lt;a href="http://hk.geocities.com/tomgundam2004/MM_CASETEST4291/index.htm"&gt;http://hk.geocities.com/tomgundam2004/MM_CASETEST4291/index.htm&lt;/a&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Introduction&lt;/em&gt;:&lt;br /&gt;This is a Java Applet to output a simple fractal generator. The generator will produce a colored fractal pattern.&lt;br /&gt;&lt;br /&gt;The java source code of cMandelbrot:&lt;br /&gt;&lt;a href="http://hk.geocities.com/tomgundam2004/MM_CASETEST4291/cMandelbrot.java"&gt;http://hk.geocities.com/tomgundam2004/MM_CASETEST4291/cMandelbrot.java&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here are the java file and class file:&lt;br /&gt;-- &lt;a href="http://www.sendspace.com/file/y1ul54"&gt;cMandelbrot.java&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.sendspace.com/file/iudjmj"&gt;cMandelbrot.class&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The screenshot of the java output:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_iWEF9GNiCWg/R1frKEw18oI/AAAAAAAAAEI/QwbHguQvg9A/s1600-h/cMandelbrot.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5140836057976533634" style="CURSOR: hand" alt="" src="http://3.bp.blogspot.com/_iWEF9GNiCWg/R1frKEw18oI/AAAAAAAAAEI/QwbHguQvg9A/s400/cMandelbrot.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;source code from : &lt;a href="http://pastebin.ca/705929"&gt;http://pastebin.ca/705929&lt;/a&gt;&lt;br /&gt;and edited by Tom Ho&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2619433527858338411-3059444583868661313?l=tomhoprogram.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tomhoprogram.blogspot.com/feeds/3059444583868661313/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2619433527858338411&amp;postID=3059444583868661313' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619433527858338411/posts/default/3059444583868661313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619433527858338411/posts/default/3059444583868661313'/><link rel='alternate' type='text/html' href='http://tomhoprogram.blogspot.com/2007/11/ism001-projectfractal-generator.html' title='ISM001 Project~Fractal generator'/><author><name>K.W.Ho (Tom)</name><uri>http://www.blogger.com/profile/02283673477708364633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://farm2.static.flickr.com/1025/691252080_a2ec760987.jpg?v=0'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_iWEF9GNiCWg/R1frKEw18oI/AAAAAAAAAEI/QwbHguQvg9A/s72-c/cMandelbrot.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619433527858338411.post-82134500173498400</id><published>2007-10-18T00:38:00.000+08:00</published><updated>2008-12-10T11:14:04.625+08:00</updated><title type='text'>ISM001 Assignment 1~Simple Text Fighter</title><content type='html'>&lt;p&gt;&lt;em&gt;Introduction:&lt;/em&gt; &lt;/p&gt;&lt;p&gt;This game is about 2 Players to Fighter together and looks forward which player win.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;The rule of the game:&lt;/em&gt; &lt;/p&gt;&lt;p&gt;(1) The initial power of each player is 100.&lt;/p&gt;&lt;p&gt;(2) In each round of fight, the winner will gain the difference between the two players, and the loser will reduce the same amount of "power difference" at the same time.&lt;/p&gt;&lt;p&gt;e.g. player1 (80 power) attacks player2 (100 power), player1 wins. Then the power difference is 20, so the new power of player1 and player2 are 100(80+20) and 80(100-20).&lt;/p&gt;&lt;p&gt;If the "power difference" is 0 before the attack (i.e. both players have the same power), then use 1 as the difference.&lt;/p&gt;&lt;p&gt;(3) When the power of any player is negative, then that player is dead. The game end.&lt;br /&gt;&lt;/p&gt;&lt;em&gt;&lt;/em&gt;&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;The java source code of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;FighterPlayer&lt;/span&gt;:&lt;/em&gt; &lt;a href="http://pastebin.ca/740044"&gt;http://pastebin.ca/740044&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;span style="color:#999999;"&gt;Here are the java file and class file:&lt;/span&gt;&lt;/em&gt; &lt;/p&gt;&lt;em&gt;The screenshot of the java output:&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;a href="http://4.bp.blogspot.com/_iWEF9GNiCWg/RxZQemxNdcI/AAAAAAAAABQ/xeTJVdha2Ag/s1600-h/fighterplayer.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5122370112913765826" style="CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_iWEF9GNiCWg/RxZQemxNdcI/AAAAAAAAABQ/xeTJVdha2Ag/s320/fighterplayer.JPG" border="0" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2619433527858338411-82134500173498400?l=tomhoprogram.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tomhoprogram.blogspot.com/feeds/82134500173498400/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2619433527858338411&amp;postID=82134500173498400' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619433527858338411/posts/default/82134500173498400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619433527858338411/posts/default/82134500173498400'/><link rel='alternate' type='text/html' href='http://tomhoprogram.blogspot.com/2007/10/ism001-assignment-1simple-text-fighter.html' title='ISM001 Assignment 1~Simple Text Fighter'/><author><name>K.W.Ho (Tom)</name><uri>http://www.blogger.com/profile/02283673477708364633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://farm2.static.flickr.com/1025/691252080_a2ec760987.jpg?v=0'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_iWEF9GNiCWg/RxZQemxNdcI/AAAAAAAAABQ/xeTJVdha2Ag/s72-c/fighterplayer.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619433527858338411.post-3327786659417683994</id><published>2007-10-17T09:22:00.000+08:00</published><updated>2007-10-17T09:27:01.099+08:00</updated><title type='text'>Welcome to Tom Ho's Program Blog!!</title><content type='html'>This is my first post on this blog. I will sharing my program(although they are too bad=.=) in this blog. Welcome to visit!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2619433527858338411-3327786659417683994?l=tomhoprogram.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tomhoprogram.blogspot.com/feeds/3327786659417683994/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2619433527858338411&amp;postID=3327786659417683994' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619433527858338411/posts/default/3327786659417683994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619433527858338411/posts/default/3327786659417683994'/><link rel='alternate' type='text/html' href='http://tomhoprogram.blogspot.com/2007/10/welcome-to-tom-hos-program-blog.html' title='Welcome to Tom Ho&apos;s Program Blog!!'/><author><name>K.W.Ho (Tom)</name><uri>http://www.blogger.com/profile/02283673477708364633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://farm2.static.flickr.com/1025/691252080_a2ec760987.jpg?v=0'/></author><thr:total>0</thr:total></entry></feed>
