4 Replies - 2691 Views - Last Post: 03 August 2013 - 09:58 PM

#1 grimpirate  Icon User is offline

  • Pirate King
  • member icon

Reputation: 149
  • View blog
  • Posts: 714
  • Joined: 03-August 06

Battleship Solitaire

Posted 23 June 2013 - 02:55 PM

Posted Image

Read more on this game here.

Download current version here.

This is a Java implementation of the game that will work on Mac/Linux/Windows as nothing other than pure Java is used.

It currently only has the one hard-coded puzzle (for demo purposes), but the infrastructure is already there for loading/editing your own. Suggestions welcome.

For parameters that can be changed at runtime use the following:
java -jar battle.jar -h


25 June 2013
Right click now supports a contextual menu with the following options:
Reset (Esc) - resets the puzzle to initial clues only
Help (F1) - opens a help dialog
Quit(Q) - quits the application

This post has been edited by grimpirate: 25 June 2013 - 03:44 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Battleship Solitaire

#2 grimpirate  Icon User is offline

  • Pirate King
  • member icon

Reputation: 149
  • View blog
  • Posts: 714
  • Joined: 03-August 06

Re: Battleship Solitaire

Posted 05 July 2013 - 09:30 AM

Posted Image

Latest version

Board now supplies a green checkmark at the lower right corner to let player know they've successfully solved the puzzle.

Have yet to implement ship-tracking features or keyboard control.

6 July 2013

Implemented keyboard control. The selected tile will have a yellow border around it. You can trigger its state with the SPACE key. Select any of the tiles on the board using the arrow keys. To flood fill a row or column use the key combinations Alt + Left/Right or Alt + Up/Down, respectively.

10 July 2013

Now implements a custom Cursor object within the encapsulating JFrame.

11 July 2013

A left panel will now appear that shows the ships and their quantities for the puzzle in play.

Below @ Martyr2: Thanks for the interest and praise Martyr2. Yeah sorry about the file upload site. My complaint about Dropbox and Google drive and what have you is the need to sign up. I rather a site where I can upload without entering any info aside from the upload. Sendspace just seemed easiest. I'll use FileSwap from now on as it doesn't seem to have the ads and nonsense.

That aside, any suggestions on things you'd like to see?

This post has been edited by grimpirate: 11 July 2013 - 02:41 PM

Was This Post Helpful? 0
  • +
  • -

#3 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4422
  • View blog
  • Posts: 12,289
  • Joined: 18-April 07

Re: Battleship Solitaire

Posted 05 July 2013 - 11:45 AM

Nice looking implementation so far. I am all for the guessing game version of battleship since these numbers on the right and bottom make things a bit too easy. But anyways... couldn't find a better file download site? That site looks pretty scummy with all the ads and such. Make a public drop box / Google Drive or something for god's sake! ;)
Was This Post Helpful? 0
  • +
  • -

#4 grimpirate  Icon User is offline

  • Pirate King
  • member icon

Reputation: 149
  • View blog
  • Posts: 714
  • Joined: 03-August 06

Re: Battleship Solitaire

Posted 20 July 2013 - 03:25 PM

Latest Version

20 July 2013

The left panel no longer solely indicates which ships are being searched for. Rather when a vessel is located it will gray out the respective vessel on the left panel. This is not to say that it also indicates that the vessel's location is correct. It solely indicates whether the player has located a ship of that length somewhere on the board.

25 July 2013

Seamless code changes for improved performance and code modularity.

This post has been edited by grimpirate: 25 July 2013 - 12:28 PM

Was This Post Helpful? 0
  • +
  • -

#5 grimpirate  Icon User is offline

  • Pirate King
  • member icon

Reputation: 149
  • View blog
  • Posts: 714
  • Joined: 03-August 06

Re: Battleship Solitaire

Posted 03 August 2013 - 09:58 PM

Latest Version

4 Aug 2013

Implemented a Save/Load function to facilitate the user's ability to arrive at the puzzle's solution thereby eliminating starting from scratch. The Help Dialog now includes a tab labeled Solution where a solved image of the puzzle appears.

8 Aug 2013

Expanded on the Save function to display a small image of the previously saved board on the left panel. Also added a timer to keep track of solution time.

This post has been edited by grimpirate: 08 August 2013 - 06:29 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1