- T9 Input 单片机T9输入法
- Professor-Lu-Wusheng-lecture 陆吾生教授是加拿大维多利亚大学电气与计算机工程系的教授
- DDS_digsinz 这是一个在MTALAB 中采用的SIMULIN设计的多功能数字频率合成器的源代码
- SPI 此代码详细的介绍了基于C8051F340的端口的初始化与基于C8051F单片机的通信
- PacMan this for pacman game
- SOFT_DAQ_V1.0_ok_20170724 实时通过数字芯片采集环境温度湿度压力信息(Collecting environmental temperature and humidity pressure information by digital chip in real time)
文件名称:龟兔赛跑的小游戏
介绍说明--下载内容来自于网络,使用问题请自行百度
面这段代码模拟了龟兔赛跑爬山的情况,其中有个时钟触发设置每秒执行一次循环,乌龟的规则是:50% 的机会快走(右移三格) 20% 的机会下滑(左移六格) 30% 的机会慢走(右移一格). 兔子的规则是:20% 的机会睡觉(不移动) 20% 的机会大跳(右移九格) 10% 的机会大滑(左移十二格) 30% 的机会小跳(右移一格) 20% 的机会小滑(左移两格). 其中最先走到整 70 格的胜利,超过 70 格的从头开始 程序在一条线上打印了龟兔移动的轨迹,当两者重合时打印 P 乌龟用 G 表示,兔子用 T 表示. -face this code to simulate the hand of the mountain, which has a clock installed trigger the implementation of a second cycle of the turtle is a rule : 50% chance of brisk walking (3 Georgia shift to right) 20% chance of decline (6 bits grid) 30% chance of walking (a shift to right field) . rabbit is a rule : 20% of the opportunity to sleep (mobile) 20% chance of play (9 Georgia shift to right) 10% of the opportunities in Waterloo (12 bits grid) 30% chance of a small jump (shift to right a grid) 20% chance of a small slip (2 bits grid). One of the most first come the whole grid of 70 victories, more than 70 grid start again from scratch in a process of the turtles online print rabbit mobile track, when the two P Print coincides with the G turtles, rabbits with T said.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
龟兔赛跑的小游戏.doc
www.dssz.com.txt
www.dssz.com.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
