Trying to get a Battleship Program ASAP

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

User avatar
BadMrBox
Veteran
Posts: 86
Joined: Tue Feb 28, 2006 12:19 pm

Post by BadMrBox »

@Raffa Great for you :).

@Burger2227
Mr Bad Box, what does your name connotate to the average person? It does not sound real friendly to me.
And your's sound like lunch. I don't know what's your hangup about my name is. It's not the first time you go down this lane kid but please... make this the last time ok? I think that you are rude and you say that I'm an unfriendly person because I'm calling myself what I do? Sigh.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Waaaaaaaaaaaaaaaaaaaa

Post by burger2227 »

If you had given us ONE piece of code, perhaps we all would have helped!
You actually gave us NOTHING to work with except that there are 3 boats!

1) How are the boats supposed to be made?
2) How are the boats shot at?
3) Who shoots who?
4) Where is one line of CODE from you?

Under the circumstances, it appears that you have no idea of how to do the program and you have the balls to blame other people? Don't try to blame anybody here for your LACK of EFFORT! I don't know how you got it done from this thread, because there was virtually no real help given, but go ahead and beat me up LOL.
Last edited by burger2227 on Thu Dec 06, 2007 11:39 am, edited 1 time in total.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Mr Bad Box

Post by burger2227 »

Concerning your handle. I don't have a problem with it. I just wonder how you came up with it? I have never met a Bad Box yet LOL.

My handle is based on my last name. I have been called Burger for years!
And I ain't no kid sonny!

Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat »

Raffa wrote:At first, I was looking for somebody to help me write it, now after meeting you Burger, you completely turn me away from it. If learning QB ever turns me into somebody like you, it's not worth it :-)

PS - I finally got it to work, thanks to everybody else :-)
:lol:
Chill 8) . If you think Burger is ill-mannered, then welcome to the internet. We all have bad moods.

Would you like FreeBasic? http://www.freebasic.net/forum/index.php
It's like QBasic.

And try the code (in QB or FB):

Code: Select all

SCREEN 12
COLOR 15
PSET (5,5)
PSET (6,6)

DO
     LET KEY$=INKEY$
LOOP WHILE KEY$=""

LINE (10,10)-(300,200)
For any grievances posted above, I blame whoever is in charge . . .
Mac
Veteran
Posts: 151
Joined: Mon Aug 06, 2007 2:00 pm

I sure would like to see the solution

Post by Mac »

From what I can determine, it is a two-player game. How is it played.

My guess:

Get Player 1 password.
Get Player 2 password.

do
Demand Player 1 password
Allow Player 1 to play
Clear the screen
Demand Player 2 password
Allow Player 2 to play
Clear the screen
loop

This appears to be a tough assignment. Each player has 2 grids: 1 for where his own ships are placed and 1 to show where shots have been been made so far.

I would require about 10 pages of detailed specifications before I would undertake to take such a program.

Mac
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Are we still guessing?

Post by burger2227 »

The man said he finished it! GREAT! Perhaps I got him so mad that he did it himself. If that is what it takes, then I am proud of my efforts! All I was trying to do was light a flame under his butt.

Mac, you ought to make one too. I know you could do it! And it would be done the right way too.

Good job Raffa! I hope it makes your instructor happy.

Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Raffa
Newbie
Posts: 8
Joined: Sat Dec 01, 2007 8:50 pm

Post by Raffa »

Thanks guys, it took me like three hours, but I discovered a bunch of new stuff. Like pset, line, paint, and circle. Just needed to get angry enough to do it. I'll be sitcking around there forums for awhile :-) Want me to show the program?
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows »

Please do, for the sake of others, learning as you were (before they have to get angry lol) or face the wrath of burger2227 lol
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
Raffa
Newbie
Posts: 8
Joined: Sat Dec 01, 2007 8:50 pm

Post by Raffa »

dun dun duuuuunnnn.
ya, I'll put it up tonight.
User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat »

After you turn it in - if you want - you can post the code and we'll help show you better techniques using the program as a guide. And debug it.
For any grievances posted above, I blame whoever is in charge . . .
Post Reply