Wednesday, March 16, 2011

Circuit Project Microcontroller Based Hangman Game explanation

Circuit Project Microcontroller Based Hangman Game explanation


Overview

A hangman game has been created with the use of Atmel AT90S8535 microcontroller along with some programming.

Explanation

Almost 150 different puzzles are selected randomly on this hangman game where a 16-character LCD displays the letters. A 16-button keypad is used for the input and for each wrong guess, one of the 8 LEDs on the Atmel development board lights up since they signify the “hanging man”. Thousands of puzzles were held since there is enough room in Program Memory.

Any combination of 1-15 characters including spaces can be contained in a puzzle and sounds are added top the game by attaching a speaker. A losing song is played to show that the player has lost. This is when all the LEDs have been lit. A winning song is played if there are no more letters left to be guessed. The notes of song correspond to the TIMER2 preload values.

The game was designed to be portable by adapting a standalone interface. The game became fun and interesting because of the random puzzle selection and large puzzle database. The full functionality also includes interactive interface, multiple word puzzles, and variable length puzzles.

0 comments:

Post a Comment