here is my battleship game so far...come try it out

This is a discussion on here is my battleship game so far...come try it out within the C++ Programming forums, part of the General Programming Boards category; So far all I have is the player ship placement. in the zip is the source code and the executable. ...

  1. #1
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753

    here is my battleship game so far...come try it out

    So far all I have is the player ship placement. in the zip is the source code and the executable. please comment on my code....i'll just say in advance that you will probably not like the code, well perhaps you will. It's already 200 lines though. Oh well, please download the zip and tell me what you think. thanks.
    Attached Files Attached Files

  2. #2
    Unregistered
    Guest
    nice

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    68
    very well done i'd say. It works great...except when you give it bad input...im sure youll be on that later in development though...
    ______________________
    The Gekko

  4. #4
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    if you put in cin.clear(); after every input i think it'll work....

  5. #5
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    what exactly does cin.clear(); do?

  6. #6
    Registered User
    Join Date
    Jan 2002
    Posts
    68
    hmmm....I beleive it just clears the buffer...check msdn...beware though, it also seems to reset everything (such as fails)
    ______________________
    The Gekko

  7. #7
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    It clears the input buffer for cin

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 04:48 PM
  2. Need book to program game into multiplayer...
    By edomingox in forum Game Programming
    Replies: 3
    Last Post: 10-02-2008, 09:26 AM
  3. C# - Building a SCUMM-like game.. questions
    By Iyouboushi in forum Game Programming
    Replies: 0
    Last Post: 05-24-2008, 10:54 PM
  4. Try my game
    By LuckY in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 09-15-2004, 11:58 AM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21