SQL Battleship

  • jimmy.white 20227 (1/8/2016)


    Awesome code, thanks for sharing!

    Game over. Human player wins in 33 shots!

    33 shots? Nice!! Hope you liked it and had fun. 🙂

  • Really Cool! I just downloaded this and played it. Lost in 33 moves even after hitting the computer's Patrol Boat after about 3 shots. It then took me 4 more shots to sink it! Argh!!!! I chose Poorly! 😉

  • Great fun! Thanks for sharing your work!

    Game over. Human player wins in 46 shots!

    The AI had only 2 hits left on my Destroyer before it won. 🙂

  • Glad people are enjoying it. 🙂

  • I keep coming back to this. It's fun.

  • I mean playing with game code makes it fun for me instead of the day-to-day stuff I'm used to.

  • Iwas Bornready (4/27/2016)


    I mean playing with game code makes it fun for me instead of the day-to-day stuff I'm used to.

    LOL. I hear ya. 🙂

  • OMG, the game of my life.  The first 6 shots I had I sank the sub and destroyer.  Took 8 more shots to get the Aircraft carrier, then 7 more for the Battleship.  Only had the Patrol boat left, I got it with the next two shots.
    Game over. Human player wins in 23 shots!

    I think I will quit while I'm ahead.

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • below86 - Friday, December 8, 2017 1:31 PM

    OMG, the game of my life.  The first 6 shots I had I sank the sub and destroyer.  Took 8 more shots to get the Aircraft carrier, then 7 more for the Battleship.  Only had the Patrol boat left, I got it with the next two shots.
    Game over. Human player wins in 23 shots!

    I think I will quit while I'm ahead.

    I'm a submariner... we have nukes.  Single shot does it. 😉

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • below86 - Friday, December 8, 2017 1:31 PM

    OMG, the game of my life.  The first 6 shots I had I sank the sub and destroyer.  Took 8 more shots to get the Aircraft carrier, then 7 more for the Battleship.  Only had the Patrol boat left, I got it with the next two shots.
    Game over. Human player wins in 23 shots!

    I think I will quit while I'm ahead.

    That is NUTS! You officially hold the title of BEST GAME EVER! Nice job. 🙂

  • Almost tied my best of just 23 shots, 24 shots. 🙂

    Attachments:
    You must be logged in to view attached files.

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • That's a little crazy. LOL. Nice job! 🙂

  • Anyone still playing this late in the year?

    Another 24 shot game.

    Kind of a slow week for me. 😉

    Attachments:
    You must be logged in to view attached files.

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • Wow! That's a stellar hit percentage! Nice job. 🙂

Viewing 15 posts - 61 through 74 (of 74 total)

You must be logged in to reply to this topic. Login to reply