Minesweeper in VB
Overview
My final project for CS133B is to make a fully functional minesweeper
clone. The class uses Visual Basic, so that will be the language I am
going to make the game in.
I’ve already gotten a start on the game, and I will make some updates to
this post including the things I’ve learned and updated with the
project.
Progress
2017-11-13
Today I finished setting up code so the buttons form rows on loading the
form. I’ve never really dynamically added elements to a form up to this
point so it was a learning experience. Here is a little bit of code
(simplified) to do that:
1 | Const GAME_SIZE = 9 ' How many rows and colums, TODO: Add x and y for game size. |
Another thing I learned about was a ternary-esque syntax in VB. For
example:
1 | Dim x As String = "Hello" |
Now that I’m sure that this is a feasible project, I’m going to need to
type out the plans before I go any further. Such as an IPO chart,
pseudocode, and a controls chart.