正在加载图片...
Example: For the Life game, the class is called Life, and configuration becomes a life object. We use three methods: initialize)will set up the initial configuration of living and dead cells; print() will print out the current configuration and update will make all the changes that occur in moving from one generation to the nextExample: For the Life game, the class is called Life, and configuration becomes a Life object. We use three methods: initialize( ) will set up the initial configuration of living and dead cells; print( ) will print out the current configuration; and update( ) will make all the changes that occur in moving from one generation to the next
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有