NNTP-Posting-Date: Tue, 12 Feb 2013 03:50:49 -0600 Date: Tue, 12 Feb 2013 09:50:49 +0000 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Converting Text File To Rectangles References: <7f49c487-f016-43a3-83a4-feebe072f76c@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 25 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-LOEZYnMABsle63jXbvn0kxNVDZIQIZ+riRXPMULXOD60VDfeTLeKcqTKeXJVI4DAjIOQI2Ah+wpLGIR!3oWMUEWDk6csMLh0k1Hb6D3Vg/QgH+Su2B9XWKBGnTKxbSUyhJ9ZU149ZgpObKFaSyd5f8i3EL8= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1916 Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail Xref: csiph.com comp.lang.java.programmer:22283 On 12/02/13 09:47, lipska the kat wrote: > On 12/02/13 01:51, Scyth3 wrote: >> I have a save and load method for certain rectangles I need for a >> game. Say the user wants to save a map. The outputted map would look >> like this: > > [snip] > >> Now, how would I read this, and turn it into a rectangle? > > Off the top of my head, on the way out the door to the swimming pool, > and for multiple rectangles (squares?). > > Refactor as required arse forgot to ask if homework, sorry :-( lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun