项目作者: manthan98

项目描述 :
Two player mastermind game
高级语言: Assembly
项目地址: git://github.com/manthan98/Codebreaker.git
创建时间: 2019-04-01T17:23:36Z
项目社区:https://github.com/manthan98/Codebreaker

开源协议:

下载


Codebreaker

Simple two-player mastermind-style game. The game works by allowing the master player to first set a combination of three
LEDs from a total of six possible LED choices. Thereafter, a secondary player inputs combinations and tries to guess the master
combination through an unlimited amount of trials. If the secondary player enters the correct LED colours, but they are in
incorrect order, the output LEDs will flash. If the player enters the correct LED choice and position, the output LED will stay
solid. A simple celebration routine where all the LEDs will light and flash upon breaking the code.

Usage

The program was developed for the ATMega328P chip found on the Arduino Uno. You may use any environment you wish to run the
source code, however this program was built on Atmel Studio.

Circuit

The hardware makes use of an Arduino Uno, two push-buttons, ten LEDs, and various resistors.

image