SQL Battleship

  • Comments posted to this topic are about the item SQL Battleship

  • This is an interesting program and quite original in thinking. I like it

  • Why thank you! Hope you enjoyed it. 🙂

  • This is excellent! It's truly amazing to see other things which can be done with SQL other than standard SELECT/UPDATE/DELETE queries against a database.

  • Thank you! And I agree, which was part of the inspiration for this bit of code. 🙂 Hope you enjoyed it.

  • Game over. Human player wins in 35 shots!:-)

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

  • Nice work, I had to make a few modifications for it to work for me.

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

  • Doing the declare and set of the variables in one statement gets an error for me.

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

  • Sorry for multiple post, keep getting error trying to post the whole thing.

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

  • Also had to change the VALUES statements.

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

  • Which version of SQL Server are you running? 2005?

  • Sean Smith-776614 (5/27/2014)


    Which version of SQL Server are you running? 2005?

    Yes, Our DEV server is still 2005, didn't want to run it on the prod server. 🙂

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

  • Ah, same here. 🙂 I have 2008 R2 locally so I just run it off my machine. 🙂

  • Sean Smith-776614 (5/27/2014)


    Ah, same here. 🙂 I have 2008 R2 locally so I just run it off my machine. 🙂

    I don't have anything loaded to my machine.

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

  • below86 (5/27/2014)


    Sean Smith-776614 (5/27/2014)


    Ah, same here. 🙂 I have 2008 R2 locally so I just run it off my machine. 🙂

    I don't have anything loaded to my machine.

    Gotcha. Good score BTW. How do you find the computer AI?

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

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