caishuzi
代码说明:
用MATLAB编写的一个猜数字游戏 就是随机生成4位数,你要在有限的步数内猜出。 用法:输入4位数字后按’ok’键,可看到当前结果。 按answer键查看正确答案 按reset键重新开始 还有很多不成熟的地方,发上来想和大家一起商量商量 主要问题: 1、步数限制功能没有完成 2、应当在显示区保留显示以前的所有步骤,但目前只能显示当前步骤 3、按键次数没有保留,无法判断你已经猜了几次 一个小bug:若输入3位数,则会自动把第一位置0 (MATLAB prepared with a game猜数字is randomly generated 4-digit, you have to step in with a limited guess. Usage: Enter the 4 digits after ' ok' button, the current results can be seen. By the answer key to view the correct answer by the reset button to restart where there are many immature, made up and we would like to discuss the main issues discussed with: 1, step 2 did not complete the functional limitations, it should be retained in the display shows all the steps before , but currently only shows the current step 3, the number keys will not be retained to determine a number of you have guessed a small bug: if the input 3-digit, it will automatically position the first 0)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!