Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 BattleShip
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Kharybdis




PostPosted: Sun May 31, 2009 3:13 pm   Post subject: BattleShip

My code is disgusting.. ah well.

This is just a reminder for me to create my own GUI for turing...
If anyone wants the code ( i don't know why you would want to), take it.
Its nicely commented though Razz



BattleShip.zip
 Description:

Download
 Filename:  BattleShip.zip
 Filesize:  17.47 MB
 Downloaded:  261 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
ecookman




PostPosted: Sun May 31, 2009 4:07 pm   Post subject: RE:BattleShip

for some reason it won't work for me.

i open it and run it...
put exactly this

AC{enter}
Left{enter}
A5

and it says i have done something wrong...have I?
Kharybdis




PostPosted: Sun May 31, 2009 5:59 pm   Post subject: RE:BattleShip

yeh. i was too bored to add all the string manipulation that would have let me do that.
you have to type in letter, press enter, then type row and then press enter.

i'm lazy, so sue me.
metachief




PostPosted: Sun May 31, 2009 10:54 pm   Post subject: RE:BattleShip

Be careful! I might actually sue you for writing such code... XD
ecookman




PostPosted: Mon Jun 01, 2009 7:15 am   Post subject: RE:BattleShip

ummm, i am still confused, could you give me an example of it?
zspamz




PostPosted: Mon Jun 01, 2009 7:48 am   Post subject: RE:BattleShip

It sucks User friendly much?
Kharybdis




PostPosted: Mon Jun 01, 2009 8:14 am   Post subject: Re: RE:BattleShip

ecookman @ Mon Jun 01, 2009 7:15 am wrote:
ummm, i am still confused, could you give me an example of it?


type A
press enter
type 5
press enter.

You gotta put the ship where its valid. So if you're putting it up, its going to take the coordinates you put and put it up. If there's not enough spaces for the ship to be put there, you'll get an error.

read the instructions.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: