<?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-4750817288287711809</id><updated>2011-10-23T23:29:20.774-05:00</updated><title type='text'>Mr G's Java Jive</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mrg-javajive.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4750817288287711809/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mrg-javajive.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mr G</name><uri>http://www.blogger.com/profile/17397233594699904878</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4750817288287711809.post-5863678790255440699</id><published>2011-05-24T14:45:00.002-05:00</published><updated>2011-05-25T09:33:18.592-05:00</updated><title type='text'>I Wrote Your Battleship</title><content type='html'>OK, I finally had a little time to personally tackle the problem of creating ships and making sure that they didn't take up spaces that were already occupied. I didn't, however, tackle the issue of keeping track of shots made at a ship and telling when one has been sunk (although I have a few broad concepts of how to do that).&lt;br /&gt;&lt;br /&gt;Doing this required rewriting the &lt;b&gt;Ship&lt;/b&gt; class a little bit, so here I give you the three classes of &lt;b&gt;Ship&lt;/b&gt;, &lt;b&gt;ShipStuff&lt;/b&gt;, and &lt;b&gt;ShipTest&lt;/b&gt; to download in a Zip archive:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://dl.dropbox.com/u/1660217/Java/Ship%20Files.zip"&gt;ShipFiles.zip&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Let's try this again:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://dl.dropbox.com/u/1660217/Java/Ship%20Files/Ship.java"&gt;Ship.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://dl.dropbox.com/u/1660217/Java/Ship%20Files/ShipStuff.java"&gt;ShipStuff.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://dl.dropbox.com/u/1660217/Java/Ship%20Files/ShipTest.java"&gt;ShipTest.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://dl.dropbox.com/u/1660217/Java/Ship%20Files/Tile.java"&gt;Tile.java&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4750817288287711809-5863678790255440699?l=mrg-javajive.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4750817288287711809/posts/default/5863678790255440699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4750817288287711809/posts/default/5863678790255440699'/><link rel='alternate' type='text/html' href='http://mrg-javajive.blogspot.com/2011/05/i-wrote-your-battleship.html' title='I Wrote Your Battleship'/><author><name>Mr G</name><uri>http://www.blogger.com/profile/17397233594699904878</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
