文件名称:Drunkard
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.21kb
-
已下载:2次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
一个基于图形的程序做一个随机游走,有时也被称为一个醉汉走路。假定醉汉初始位置为400x400像素图形的中央,每走一步都是5像素。方向为上下左右随机。-a graphics-based program to do a random walk, sometimes also known as a drunkard s walk. A random walk simulates the wandering of an intoxicated person on a square street grid. The drunkard will start out in the middle of the grid and will randomly pick one of the four compass directions, and take a step in that direction, then another step from that new location in a random direction, etc. This will be repeated some number of times determined by the user. The output will display the path of the drunkard as a sequence of line-segments.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Drunkard.java
DrunkardTester.java
RandomWalkComponent.java
RandomWalkViewer.java
DrunkardTester.java
RandomWalkComponent.java
RandomWalkViewer.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.