Category Archives: Grid-based

Battleships Update

I’ve been rather obsessively working on my Battleships program the last few days, and have quite a bit to show for it: The autosolver works now, as does the random puzzle generator. The random puzzle generator is nowhere near as … Continue reading

Posted in Battleships, C#, Grid-based | Tagged , , , , , | Leave a comment

Battleships: Adding undo, autosolve, and a toolbar

I’ve been thinking lately of making my Battleships program more robust by having a complete autosolver and a random puzzle creator. The first step was programming a step that would do the simple stuff: If a row has n remaining … Continue reading

Posted in Battleships, C#, Grid-based | Tagged , , , | Leave a comment

Programmatically adding XAML elements in C#

I had originally hard-coded the grid in my Battleships program. This resulted in very repetitive code, since there were 100 cells that contained the same basic information, but I didn’t want to get too bogged down in UI programming matters … Continue reading

Posted in Battleships, C#, Grid-based | Tagged , , | Leave a comment

Including external files in a C# ClickOnce deployment

The first version of my Battleships program is done. I’ll be releasing it into the wild today or tomorrow. One hurdle I stumbled over was on how to include XML files as external files in the ClickOnce deployment. My normally … Continue reading

Posted in Battleships, C#, Grid-based | Tagged , | Leave a comment

Battleships in C#

My current C# project is to create a Battleships program that would allow easy input of grids and on-screen solving. I find myself strongly preferring online solving of this sort of puzzle to doing it on paper. Conceptis has an … Continue reading

Posted in Battleships, C#, Grid-based | Tagged , , , , , | Leave a comment