Programs
Maze
Our first program requires you to make a maze out of 15 to 25 Labels. The user must guide the mouse point through the maze to reach the finish line. If the user is able to do so, a message box appears with "You win!" text. Bonus points are possible if you are able to add "anti-cheating" code, invisible pits, keys, doors, portals, removable walls, etc...
Focus:
MouseEnter event
Mouse Pointer Movement - Windows.Forms.Cursor.Position = New Point(0, 0)
Label Property Changes - Text, Autosize, BackColor
Focus:
MouseEnter event
Mouse Pointer Movement - Windows.Forms.Cursor.Position = New Point(0, 0)
Label Property Changes - Text, Autosize, BackColor
Rainbow
This program has seven buttons and 1 label. The buttons represent the seven colors of a rainbow (ROYGBIV). When any of the buttons is clicked, the text in the label changes to match the color clicked. Also, the BackColor of the label is changed to match the color clicked. The forecolor is also changed to white (from default black) when the darker colors are clicked to make the text in the label more readable.
Colleges
Flags
World's Hardest Game
World's Hardest Game - Design Phase
World's Hardest Game - Design Verification
World's Hardest Game - Coding Phase
World's Hardest Game - Design Verification
World's Hardest Game - Coding Phase
Shapes Programs
There are actual five programs that you will create. Each program asks the user to enter in shape information and it will use various Math functions to calculate a variety of output, such as area, perimeter, hypotenuse length and volume. The assignment details are found here: Shape Assignment. You will find more information about the various Math functions required in this document: Math Functions
Calculator Program
Calculator Program description found here: Calculator Program
Dice Program
This program has two picture boxes, a label and a button. We are focusing on generating and using random numbers. The idea is that when the button is clicked, two random numbers in the range from 1 to 6 is generated. We then use IF..Then statements to output one of six different images of dice (showing 1 to 6 dots). The label will then output the total of the dice roll. The images for the dice are found in the Computer Programming Shared Drive and in the Images folder. Make sure these get copied into the debug folder for your Dice project.
The program should message box "Snake Eyes!" when the user rolls double ones and "Box Cars" when the user rolls double sixes. It should also output "Doubles!" when the user rolls double two, three, four or five. (Double ones and double sixes are handled with Snake Eyes and Box Cars) The program will use three integer variables to hold the value of die1, die2 and total.
The program should message box "Snake Eyes!" when the user rolls double ones and "Box Cars" when the user rolls double sixes. It should also output "Doubles!" when the user rolls double two, three, four or five. (Double ones and double sixes are handled with Snake Eyes and Box Cars) The program will use three integer variables to hold the value of die1, die2 and total.
RPG Program Code (Updated to version 1.1)
Copy and paste the code in this document to replace what you currently have.
RPG Program Code (version 1.1)
Copy these files in your BIN/DEBUG folder
Now your task is to add both size and improvement to this existing program. The improvements you must make are found here: RPG Improvements
Hero Images greenupImage
Textures
RPG Program Code (version 1.1)
Copy these files in your BIN/DEBUG folder
Now your task is to add both size and improvement to this existing program. The improvements you must make are found here: RPG Improvements
Hero Images greenupImage
Textures
Fire Corridor
LightsOut
Poker
Card Images can be found here
Dice Wars
Assignment details are provided in this document: Dice Wars Assignment. Use the images below for the dice images:
dicewars.jpg
one.jpg
two.jpg
three.jpg
four.jpg
five.jpg
six.jpg
downarrow.png
dicewars.jpg
one.jpg
two.jpg
three.jpg
four.jpg
five.jpg
six.jpg
downarrow.png
Shooter Program
OK Red
Complete program description found here: OK Red Assignment
CharacterSelect
This program uses a menustrip with 4 possible choices. This choices are characters from a cartoon or movie.
Birthdays
This program has 12 buttons and two labels. The buttons will represent the 12 months of the year (January through December). When one of the buttons is clicked upon, the text in the first label will output the name of someone you know (family, friend or celebrity) whose birthday is in that month. The second label will output the actual date of their birth. For example, if the "May" button was clicked upon, Label1 would output "Bill Dixon" and Label2 would output "May 17, 1970".
We also added a single picture box that contains a picture of one of the people in our program. When their month is clicked, this picture box should be visible. When any other month is clicked, this picture box should not be visible.
We also added a single picture box that contains a picture of one of the people in our program. When their month is clicked, this picture box should be visible. When any other month is clicked, this picture box should not be visible.
Breakout Images
Lightbulb Program
This program has a picture box and a button. To start the picture box shows a light bulb that is "off". The button text reads "Turn on". When the button is clicked, the image inside the picture box changes to a light bulb that is turned "on". Also the button text changes to "Turn off". Each time we click on the button, the image and the button text should flip. We will use a boolean variable and an IF...THEN...ELSE condition statement to make this program work.
The images need to create from the lightbulb image found here or in the shared drive. It needs to e edited in Fireworks (transparency added) and split (and saved) into two separate images and then copied into the DEBUG folder of your Lightbulb project. The backcolor of the form should be changed to black and the lightbulb should NOT appear as a white box on this black background.
Uneditted Lightbulb Image
The images need to create from the lightbulb image found here or in the shared drive. It needs to e edited in Fireworks (transparency added) and split (and saved) into two separate images and then copied into the DEBUG folder of your Lightbulb project. The backcolor of the form should be changed to black and the lightbulb should NOT appear as a white box on this black background.
Uneditted Lightbulb Image
Random Numbers
Random Numbers assignment is found here: Random Numbers Assignment
Cards Program
This program is similar to the Dice program, but instead of outputting a random dice roll, it will output a random card from a deck. The Images folder on the shared drive has the 52 images needed to build this program. The program should deal out two cards (Poker Hand). You will need to use two different variables to hold the values of the two cards. Your program should message box "Pair" when the cards are the same rank and should message box "Flush" when they are the same suit.
Checkerboard
This program creates an interactive checkerboard from code. Each of the squares on the checkerboard can be clicked upon and erased and the program will tell you when you've cleared the board. This code from this program can be used as a component of later programs.
Download the program code here: Checkerboard Program
Download the program code here: Checkerboard Program
WallCollisions Program
This assignment has you creating a maze of wall and navigating your hero through the maze. It will also prevent you from moving through the walls of your maze. The process is different that the one used in the RPG program. It is done without text files. Follow the directions in this document: WallCollision Assignment