Tag Archives: VC#

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

It’s the little things…

Doing some code clean-up on Battleships this morning, I was reminded of a detail of C# logic precedence that I’ve used to my benefit elsewhere (including within the program), but which caused a brief hiccup in one instance. Specifically, while … Continue reading

Posted in C# | 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

A simple HLSL tutorial

HLSL is a C-related language that exists for the purpose of adding filters (or “shaders”) to images for various graphic effects. It is the primary way to manipulate the appearance of completed images within VS2010 projects. (Note that I deliberately … Continue reading

Posted in HLSL | Tagged , , , , , , | Leave a comment