文件名称:Drunkard
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- c***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一个基于图形的程序做一个随机游走,有时也被称为一个醉汉走路。假定醉汉初始位置为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