# guess **Repository Path**: iceleee/guess ## Basic Information - **Project Name**: guess - **Description**: 猜数游戏 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 猜数游戏 ### 游戏规则 + 首先系统随机给出一个4位数,这个数字4位互不相同且第一位不为0。 + 你需要根据系统左边的提示,猜出数字 + 例如,系统给出的数为1234。你猜1256,则此时系统会提示2A0B。其中A代表数字正确,位置也正确。B代表数字正确,但是位置不正确。由于你给出的数字中12满足A,而56不满足B,所以是2A0B。 + 假如你猜4231,此时23位置正确数字也正确,然后14数字正确位置不正确,所以系统最终提示2A2B。 + 假如你猜4789,此时只有4数字正确,而位置不正确,所以系统给出的提示为0A1B。 + 10次以内猜出答案即可获胜 ### 操作指南 + 直接打开index.html。 ### 预览 ![预览](https://upload-images.jianshu.io/upload_images/5750842-f830612cdf16bba6.PNG?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)