Guess the Number (Windows)

This project is the first of the three “Guess the Number” projects that I’ve completed (before Guess the Number (iOS) and Guess the Number AI). I had played this game long before I wrote this program. During the period when I was self-learning Visual Basic, I decided to make a program of this game which the player guesses the number randomly generated by the program.

The two-player game is also named Bulls and Cows, which one player thinks of a four-digit number with every digit being unique and the other player trying to guess that number. During each turn, the player who guesses speaks a number while the other replies with how many A’s and B’s according to the relationship between the guessed number and answer. The number of A’s indicate how many digits in the guessed number are identical with those in the answer and are on the same location; the number of B’s indicate how many digits are identical but aren’t on the same location (e.g. 2A1B should be replied when a guessed number is 1234 and the answer is 1532). The player guesses until the answer is guessed and the round ends. Players may take turn playing the opposite role and try to guess as few times as possible.

This mini-project encouraged me to design more complex programs, and is an important milestone in my journey of programming.

[Download Game]

Racecar

Once upon a time, when cell phone screens were only black and white…

This game “racecar” had been the most interesting one on my first Motorola cell phone. Learning Visual Basic on my own, I had tried to mimic and construct games that I’d played before, hoping one day I could make up some fantastic ones of my own. Racecar is a simple successive one at the initial stages of my self-learning of programming.

The player first picks a game level from 1 to 9, game starts after the countdown of 3 and three adjacent blue squares representing a racecar travels down a track where obstacles will be encountered frequently. The player can move left or right in order to dodge the obstacles, and the longer he survives, the more points he will get.

This project is the first game for me to implement programmable drawn shapes as the objects, and led me into the discovery of the important fundamentals of program logic.

[Download Game]

Bomberman

Bomberman has always been a popular online multiplayer game. Having the experience of creating several applications and games using Visual Basic (VB) (Racecar, Guess the Number (Windows), Simple Magic Cube, Tic-Tac-Toe AI, Sudoku AI, Othello AI, …), I decided to design a multiplayer game using VB. This is the final project for using VB as the programming language in my junior high school period.

Figure 1. Snapshot of game start on a 10×10 grid.

In this game, the players decide the size of the game grid (an NxN square grid), the number of walls and the total number of items. Then player 1 starts at the bottom right corner and player 2 starts at the top left corner of the grid (Fig. 1). Player 1 and 2 walk around and drop bombs at preferred locations and the placed bombs would explode after a few seconds. A player wins if the other player is within the explosion range of an exploded bomb. A wall would disappear after being hit by a bomb. Initially, the players can only wait for a bomb dropped by themselves to explode before dropping another bomb, and the explosion range is a cross section extending one lattice away from the dropped bomb’s location. The number of available bombs and explosion range can be increased by obtaining items that were initially hidden behind the walls. The images used in this game are shown in Fig. 2.

Figure 2. Images used in bomberman. (Left to right: player 1, player 2, wall, bomb, bomb explode fire, bomb increase item, explode range increase item.)

Although being a highly simplified version of the original online game, this project demonstrated the ability of using VB for designing multiplayer games and deepened my programming abilities.

[Download Game] (The jpg files need to be in the same folder as BBMan.exe)