文件名称:cpld1a
介绍说明--下载内容来自于网络,使用问题请自行百度
猜数字游戏机
这是一个让玩家在一定的规则和系统提示下,推算一个随机产生的四位数的游戏,这个四位数的各位都不相同。游戏规则如下:
系统 随机产生一个四位数,数码各不相同,玩家通过键盘依次输入4位数,输错可以按退格键修改,输完按确认键确认,然后系统判断,如果猜的数字有x个数字与答案数码相同并且位置相同(该条件代号用A表示),有y个数字与答案数码相同但位置不同(该条件代号用B表示),就输出xAyB。例如答案是2639,输入1692,那么确认后显示结果1A2B。然后玩家通过分析再次输入新的数字,直到猜中答案。游戏每局提供10次机会,并且有100秒倒计时,以增加玩家的压力。
本系统采用CPLD作为主控平台,另外用单片机通过I2C总线与单片机通信实现4个数码管的输出。
-Number guessing game
This is a must for players in the rules and the system prompt, the projection of a randomly generated four-digit game, the four digits of you
Not the same. Rules of the game are as follows:
System generates a random four-digit, different digital players followed by the keyboard input 4-digit, the wrong can press the backspace key repair
Changed, losers press the Enter key to confirm, then the system to determine if there are x number of guess the number and location of same with the same answer to digital (which
Pieces of code that with A), y have the same numbers but with different positions of digital answer (indicated with B in the condition code), the output xAyB. Such as
The answer is 2639, enter 1692, then display the results confirmed 1A2B. Then the player by analyzing the re-enter the new number until guess
The answer. Board games every 10 chances, and 100-second countdown to increase the pressure on the players.
The system uses the CPLD as a host
这是一个让玩家在一定的规则和系统提示下,推算一个随机产生的四位数的游戏,这个四位数的各位都不相同。游戏规则如下:
系统 随机产生一个四位数,数码各不相同,玩家通过键盘依次输入4位数,输错可以按退格键修改,输完按确认键确认,然后系统判断,如果猜的数字有x个数字与答案数码相同并且位置相同(该条件代号用A表示),有y个数字与答案数码相同但位置不同(该条件代号用B表示),就输出xAyB。例如答案是2639,输入1692,那么确认后显示结果1A2B。然后玩家通过分析再次输入新的数字,直到猜中答案。游戏每局提供10次机会,并且有100秒倒计时,以增加玩家的压力。
本系统采用CPLD作为主控平台,另外用单片机通过I2C总线与单片机通信实现4个数码管的输出。
-Number guessing game
This is a must for players in the rules and the system prompt, the projection of a randomly generated four-digit game, the four digits of you
Not the same. Rules of the game are as follows:
System generates a random four-digit, different digital players followed by the keyboard input 4-digit, the wrong can press the backspace key repair
Changed, losers press the Enter key to confirm, then the system to determine if there are x number of guess the number and location of same with the same answer to digital (which
Pieces of code that with A), y have the same numbers but with different positions of digital answer (indicated with B in the condition code), the output xAyB. Such as
The answer is 2639, enter 1692, then display the results confirmed 1A2B. Then the player by analyzing the re-enter the new number until guess
The answer. Board games every 10 chances, and 100-second countdown to increase the pressure on the players.
The system uses the CPLD as a host
(系统自动生成,下载前可以参看下载内容)
下载文件列表
单片机&CPLD + 1 + A设计源码.rar
单片机&CPLD + 1 + A文稿.rar
单片机&CPLD + 1 + A文稿.rar
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.