1
HANDHELD MASTERMIND RIT Department of Computer Engineering Senior Design Projects II Fall 2007Carl Kelso Michael Ellis Ryan Shon Using Handheld Mastermind: The “pegs” of user’s guesses, as well as game and option menus, are shown on a computer display. A player enters the secret code, guesses, and navigates the menus using the handheld module. Four LED selection buttons choose an LED. Up and down buttons scroll through the colors, as well as though menus. The enter button submits a color code and makes menu selections. Implementation: At the core of the project is the Atmel ATmega 1684p 8-bit microcontroller. All the game logic was programmed using its native AVR assembly language. Game play Modes: Handheld Mastermind includes single player, two player, and tournament modes, with scoring by both number of guesses and time to solve a puzzle. Added Versatility: As a handheld electronic device, Mastermind can be played alone against the computer, as well as with two players. Record scores are recorded in computer memory, and tournaments are automatically organized and scored. The computer display is implemented in Java on a PC. It receives graphical instructions as ASCII text using a serial RS-232 connection to the microcontroller. This solution was chosen to avoid the prohibitive cost of a color LCD screen. Mastermind is a simple board game that focuses on the ability of a player to deduce from limited information a pattern created hidden by a pattern keeper. The game-play starts when the pattern keeper chooses a pattern of four random colors chosen from a limited set of six or eight. These colors may repeat. The other player then attempts to guess the pattern within a limited number of guesses. The pattern keeper ‘grades’ the resulting pattern by showing black pegs to indicate the number of pieces that match in color and position, and white pegs for any remaining pieces matching in color but not position. Up to four pegs may be used to indicate this state, and goal pegs may only match a single guess peg. To implement the Mastermind code-breaking boardgame as a handheld, electronic device. Project Goal: Mastermind: Part Quantity (Development ) Quantity (in Project) Typical Price $$$ (each) Total Cost to Duplicate Project Development Cost Our Team Spent Multi-spectrum LED 8 4 1.64 6.56 13.12 13.12 Red LED 4 4 0.1 0.4 0.4 0 Green LED 1 1 0.1 0.1 0.1 0 Tactile Switch 10 7 0.22 1.54 2.2 2.2 Atmega 164 μCU 2 1 4.82 4.82 9.64 9.64 Prototype Board 2 1 1.69 1.69 3.38 3.38 1k Resistor 18 6 0.05 0.3 0.9 0 10k Resistor 7 8 0.05 0.4 0.35 2.86 2k Resistor 12 12 0.05 0.6 0.6 0 Slide Switch 2 1 1.32 1.32 2.64 2.64 Diode (schotky) 1 1 0.39 0.39 0.39 0 Transistors (3904) 2 2 0.11 0.22 0.22 0 Serial Port 2 1 2.69 2.69 5.38 5.38 Battery 4 3 0.67 2.01 2.68 2.68 Pine Wood 1 1 6.55 6.55 6.55 6.55 Wood Tacks 16 16 0.1 1.6 1.6 1.6 Nuts 16 8 0.28 2.24 4.48 2.24 Bolts 12 4 0.4 1.6 4.8 4.8 Washers 8 0 0.2 0 1.6 1.6 Fiberglass Resin 1 0.5 7.99 3.995 7.99 0 Wood Glue 1 0.1 3.99 0.399 3.99 0 Hot Glue 1 0.1 1.99 0.199 1.99 0 Paint 4 4 1.69 6.76 6.76 0 Wooden Dowel 1 0.25 1.99 0.4975 1.99 1.99 Corn Starch 1 0 1.99 0 1.99 1.99 Baking Soda 1 0 1.99 0 1.99 1.99 Glycerine 2 0 2.99 0 5.98 5.98 Total 46.8805 93.71 70.64 Response GUI Controller Setup Final Controller Cost Breakdown

HANDHELD MASTERMIND RIT Department of Computer Engineering Senior Design Projects II Fall 2007 Carl Kelso Michael Ellis Ryan Shon Using Handheld Mastermind:

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

Page 1: HANDHELD MASTERMIND RIT Department of Computer Engineering Senior Design Projects II Fall 2007 Carl Kelso Michael Ellis Ryan Shon Using Handheld Mastermind:

HANDHELD MASTERMIND

RIT Department of Computer Engineering Senior Design Projects II Fall 2007Carl Kelso Michael Ellis Ryan Shon

Using Handheld Mastermind:The “pegs” of user’s guesses, as well as game and option menus, are shown on a computer display.

A player enters the secret code, guesses, and navigates the menus using the handheld module.

Four LED selection buttons choose an LED. Up and down buttons scroll through the colors, as well as though menus. The enter button submits a color code and makes menu selections.

Implementation:

At the core of the project is the Atmel ATmega 1684p 8-bit microcontroller. All the game logic was programmed using its native AVR assembly language.

Game play Modes:Handheld Mastermind includes single player, two player, and tournament modes, with scoring by both number of guesses and time to solve a puzzle.

Added Versatility:

As a handheld electronic device, Mastermind can be played alone against the computer, as well as with two players. Record scores are recorded in computer memory, and tournaments are automatically organized and scored.

The computer display is implemented in Java on a PC. It receives graphical instructions as ASCII text using a serial RS-232 connection to the microcontroller. This solution was chosen to avoid the prohibitive cost of a color LCD screen.

Mastermind is a simple board game that focuses on the ability of a player to deduce from limited information a pattern created hidden by a pattern keeper. The game-play starts when the pattern keeper chooses a pattern of four random colors chosen from a limited set of six or eight. These colors may repeat. The other player then attempts to guess the pattern within a limited number of guesses.

The pattern keeper ‘grades’ the resulting pattern by showing black pegs to indicate the number of pieces that match in color and position, and white pegs for any remaining pieces matching in color but not position. Up to four pegs may be used to indicate this state, and goal pegs may only match a single guess peg.

To implement the Mastermind code-breaking boardgame as a handheld, electronic device.

Project Goal:

Mastermind:

PartQuantity

(Development)Quantity (in

Project)Typical Price $$

$ (each)Total Cost to

Duplicate ProjectDevelopment Cost Our Team Spent

Multi-spectrum LED 8 4 1.64 6.56 13.12 13.12

Red LED 4 4 0.1 0.4 0.4 0

Green LED 1 1 0.1 0.1 0.1 0

Tactile Switch 10 7 0.22 1.54 2.2 2.2

Atmega 164 μCU 2 1 4.82 4.82 9.64 9.64

Prototype Board 2 1 1.69 1.69 3.38 3.38

1k Resistor 18 6 0.05 0.3 0.9 0

10k Resistor 7 8 0.05 0.4 0.35 2.86

2k Resistor 12 12 0.05 0.6 0.6 0

Slide Switch 2 1 1.32 1.32 2.64 2.64

Diode (schotky) 1 1 0.39 0.39 0.39 0

Transistors (3904) 2 2 0.11 0.22 0.22 0

Serial Port 2 1 2.69 2.69 5.38 5.38

Battery 4 3 0.67 2.01 2.68 2.68

Pine Wood 1 1 6.55 6.55 6.55 6.55

Wood Tacks 16 16 0.1 1.6 1.6 1.6

Nuts 16 8 0.28 2.24 4.48 2.24

Bolts 12 4 0.4 1.6 4.8 4.8

Washers 8 0 0.2 0 1.6 1.6

Fiberglass Resin 1 0.5 7.99 3.995 7.99 0

Wood Glue 1 0.1 3.99 0.399 3.99 0

Hot Glue 1 0.1 1.99 0.199 1.99 0

Paint 4 4 1.69 6.76 6.76 0

Wooden Dowel 1 0.25 1.99 0.4975 1.99 1.99

Corn Starch 1 0 1.99 0 1.99 1.99

Baking Soda 1 0 1.99 0 1.99 1.99

Glycerine 2 0 2.99 0 5.98 5.98

Total       46.8805 93.71 70.64

Response GUI

Controller Setup

Final Controller

Cost Breakdown