Computer Science Canada

BattleShip

Author:  Kharybdis [ 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

Author:  ecookman [ 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?

Author:  Kharybdis [ 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.

Author:  metachief [ Sun May 31, 2009 10:54 pm ]
Post subject:  RE:BattleShip

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

Author:  ecookman [ Mon Jun 01, 2009 7:15 am ]
Post subject:  RE:BattleShip

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

Author:  zspamz [ Mon Jun 01, 2009 7:48 am ]
Post subject:  RE:BattleShip

It sucks User friendly much?

Author:  Kharybdis [ 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.


: