A Cryptogram game - simple encryption in VB6 source

Level:
Level2

Written By TheVBProgramer.

PROGRAMMING EXERCISE

Cryptogram

 

 

A cryptogram is a coded message where each letter in the cryptogram puzzle stands for a different letter of the alphabet. The coded message is often a famous quotation, proverb, or maxim. The objective of the game is to decode the message. Write a VB application that will present a cryptogram puzzle to the user and provide a way for them to enter the solution.

 

Below is a screenshot showing my implementation:

 

 

Following is information from the help file written for the application, which will be displayed when the user clicks the "Instructions" button. It can also provide a guideline for how you might go about designing this application. Bear in mind that this applies to my implementation; you may have an entirely different vision of how this might be done. Feel free to use all, any, or none of the ideas presented here for your own implementation. As with the Calculator program, you will need to look into the KeyUp and KeyDown events as well as the KeyPreview property.

 

When you start the game, a new puzzle is displayed on the interface as black letters on gray tiles, with space separating each word in the puzzle. Above each gray tile is a black box in which you type the letter that the coded letter below it represents. The letters you type in the black boxes will be displayed in green.

 

Whatever letter you type for a coded letter will automatically be propagated throughout the puzzle. For example, if you type an "A" above an "X" tile, then the letter "A" will appear over ALL "X" tiles.

 

Keyboard Navigation

 

Whenever you type a letter in a black box, the cursor will automatically move forward to the next unused black box. To move forward to any black box, use the <right arrow> key, the <Tab> key, or click it with the mouse. To move backward to any black box, use the <left arrow> key, the <Shift-Tab> key combination or click it with the mouse. To move up or down a line, use the <up arrow> and <down arrow> keys. To go directly to the beginning of a line, use the <Home> key; to go directly to the end of a line, use the <End> key.

 

To delete a character in a black box, press the <Delete> key if the insertion point appears to the left of the letter, or press <Backspace> if the insertion point appears to the right of the letter.

 

Only letters may be entered into a black box; input of any other character is inhibited. Also, input of any letter you have already used will be inhibited. If you wish to change a coded letter to a letter you have already used, you must first delete the original occurrence of the letter.

 

Command Button Options

 

Instructions

 

Displays the help screen.

 

 

Check

 

This option checks your solution and temporarily changes the color of any incorrect letters to red (if you have not completed the puzzle, only the letters you have entered so far will be checked). Once you type a new letter or click another command button, all letters will turn back to green.

 

If you have completed the puzzle and your solution is correct, you will be asked if you want to play another game. If so, a new puzzle will be presented; otherwise, the program will end.

 

 

Show Solution

 

If your solution is incomplete or incorrect as this point, you will first be asked if you are sure you want to see the answer. If you choose Yes, the game board will temporarily freeze as the answer is revealed. At that point, you can either start a new game or exit.

 

If your solution is correct, you will be asked if you want to play another game. If so, a new puzzle will be presented; otherwise, the program will end.

 

 

New Puzzle

 

This option starts a new puzzle. If you already have a game in progress, your solution will be checked to see if it is incomplete or incorrect, and if so, you will be asked if you want to abandon the game before moving on.

 

If you abandon the game, the solution for the abandoned game will be shown to you, then the new game will start.

 

 

Download the solution for this project here.

 

If you enjoyed this post, subscribe for updates (it's free)

boska strona.

boska strona.

Need some help on encryption/decryption of text/words.

Havee seen u help people, i Need some help on encryption/decryption of text/words.

SPANISH: Encima de idiotas,

SPANISH: Encima de idiotas, vagos. No quieren hacer los programas, y no quieren siquiera leer el post completo. Abajo esta el link FORROS!
ENGLISH: Stupid and lazy boys. Don't want to write the code, but don't want even read all the post!- There is a link for the code at the bottom of the post! Jerks.

helo...can i have the code of

helo...can i have the code of your project please.i have to submit game project next week.pls help me by sending the code to my id bulubuluin@gmail.com.can u suggest me some good sites from from wr we get simple projects in vb

I managed to solve this

I managed to solve this

must make an effort brain

must make an effort brain cells

Great fun

Great fun

Not so easy

Not so easy

The effort for the brain

The effort for the brain

Can i have the code of this

Can i have the code of this game..because i need to past my project games in visual basic subject before my final exam..please help me! email me at princessjazz29@yahoo.com
Thank you.....

There is a link to the code

There is a link to the code at the end of the article. What more do you need?

I really impressed by your

I really impressed by your post. Thank you for this great information, you write very well which i like very much.

hello

hello... there..can i have the codes of your project? 'Because i have a project in games using VB..please i need your help.. you can email me at kishi_2407@yahoo.com ..thanks a lot.. more power...
please i need it..... thanks again.. asap please..

game

cAn I hAve tHe cOdE of tHis gAmE...PLZzZz

No

Not until you learn to type properly.

I love puzzle games and

I love puzzle games and strategy games, but this one is a bit beyond being "fun" for me... it would drive me nuts trying to figure out one like this!

Thanks for taking the time

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful and beneficial to your readers.

Oes Tsetnoc Pertamina Sopir Angkot kenali dan kunjungi objek wisata di pandeglang

can i have the codes of this

can i have the codes of this games cause I will study it.,
thanks and more power to you..,
may God bless you always..,
here's my e-mail add........McTracy0812@yahoo.com

hai

can i have the codes of that game?..

i reli need your help to give me more idea how to create a game using vb6.
thanks and more powers!!

help pls...

hi, can i get the source code of this, i need to study on some parts of the program...
thank you, more power! :)

thankz

Thankz for giving us the sourse code of this wonderful game....

hey

sir:

can i get the code of that program??
'coz i need it.. imediately
thanks....

here's my email..

foreverlock_01@yahoo.com

any encryption that connects ms access? HELP!!!

pls help me tomake the logic and code coz im not gud at it. so that i may learn from ur hints and examples ^^,
Subject: encryption that connects ms. access

tnx and more powers... heres my account
jeremy06_rej@yahoo.com.ph

..im 16 years old have now

..im 16 years old have now studies in Vb5,6,7,.net.2003.net.2005.net or 2008.net and im a master in programing in this language..if u want any help im more than willing to help my email is.dieoom01@gmail.com

vb6

HELLO!.. I'M ASKING FOR ANY HELP!... I NEED SOMEONE WHO CAN GIVE ME CODES OF ENCRYPTION... BY LETTERS..USING VB.6.. EXAMPLE IS: INPUT-THE THEN THE RESULT IS 123... LIKE THAT!. JUST A SAMPLE CODES... THANK YOU..

hey. can i have source code

hey. can i have source code for some breakout style games
im quite new, but undertand most of the syntax

and there it went almost like your life

i want ur help in making

i want ur help in making reports from the database .plz send the tutorial on my mail if any. my acc is irshad_lada@yahoo.com.thankyou

help!

hell hello there..can i have the codes of your project? 'coz i have a project in games using VB..please i need your help.. you can email me at orange_dako@yahoo.com ..thanks a lot.. more power.!

hello

please may i know what is the coding of this game?? i need it bfor my final requirement...send it at my yahoo mail..thank you

plsss help me

heloo.. can u help me to make a simple calculator program plss?? this is our first trinal exam.
i dn't have any idea..

Need your help

hello there..can i have the codes of your project? 'coz i have a project in games using VB..i promise to append your name in this project..please i need your help.. you can email me at lestat44@gmail.com..thanks a lot.. more power.!

vb6 games

can i know the code of this games?
coz i have a project about games.
thanks a lot, in advance