人工生活 - 为别人做的工作 [英] Artifical Life - a job for someone else

查看:69
本文介绍了人工生活 - 为别人做的工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很想念一个不错的Cellular Automota计划,我真的很惊讶,因为没有太多的python实现。


我已经看到了''笼子',但是这会使用诅咒所以不起作用

windoze :-( *有人*应该做一个体面的Tkinter版本的生活!! br />
非常有趣。不幸的是它不会是我,因为我现在有太多的项目

....

问候,


Fuzzyman

http://www.voidspace.org.uk/atlantib...thonutils.html

解决方案

fu******@gmail.com (Michael Foord)写道:

我真的很想念一个不错的Cellular Automota计划,我真的很惊讶,没有太多的实施方案f或者python。




PythonCard发行版中的一个示例是经典ConwayLife的实现




尼克


-

#sigmask || 0.2 || 20030107 ||公共领域||把它喂给一个python

print reduce(lambda x,y:x + chr(ord(y)-1),''Ojdl!Wbshjti!= obwAcboefstobudi / psh?'')


Michael Foord写道:

我真的很想念一个不错的Cellular Automota计划,我真的很惊讶没有''很多'蟒蛇的实现。

我已经看到了''笼'',但是这使用了诅咒所以不用
windoze: - (




我知道凯文·阿尔蒂斯曾经在尝试与PythonCard挂钩获得
CAGE;我不知道他到底有多远或者它最终是否已经发布了(作为一个PythonCard示例).Martijn Faassen很友好

让我知道他为pygame做的CAGE集成,其中/>
显然正在工作,他给我发了示例代码(我肯定他会很高兴把它发给你)。

但即使两者都没有那些让你感兴趣的东西,有一个适用于Windows的Python

curses模块:

http://flangy.com/dev/python/curses/


我没看过它最近,但是当它最初宣布的时候我已经检查了CAGE并且发现令我惊喜的是,它完美地工作了

完美无瑕,我没有看到任何问题(该网页甚至提到了我的

报告)。正如我所说的那样,我最近没有检查过,但我确定它的价格仅在此期间有所改善。


-

__ Erik Max Francis&& ma*@alcyone.com && http://www.alcyone.com/max/

/ \美国加利福尼亚州圣何塞市&& 37 20 N 121 53 W&& AIM erikmaxfrancis

\ __ /获胜者是一生都致力于获胜的人。

- Woody Hayes


Michael Foord写道:

我真的很想念一个不错的Cellular Automota程序,我真的很惊讶没有太多的python实现。



虽然不是Python(而是Java),我已经写了一个

在线一维元胞自动机模拟器。
< a rel =nofollowhref =http://www.xs4all.nl/~irmen/comp/cellular.htmltarget =_ blank> http://www.xs4all.nl/~irmen/comp/cellular .html


它会创建那些你可能会认识到的有趣图片。

Stephen Wolfram的书。


如果您需要源代码,请告诉我。转换为Python可能很容易

:)


--Irmen


I really miss a decent Cellular Automota program and I was really
surprised that there weren''t lot''s of implementations for python.

I''ve seen ''cage'' around, but this uses curses so doesn''t work on
windoze :-( *Someone* should do a decent Tkinter version of life !!
Great fun. Unfortunately it won''t be me as I''ve got too many projects
on at the moment....

Regards,

Fuzzyman

http://www.voidspace.org.uk/atlantib...thonutils.html

解决方案

fu******@gmail.com (Michael Foord) writes:

I really miss a decent Cellular Automota program and I was really
surprised that there weren''t lot''s of implementations for python.



One of the samples in the PythonCard distribution is an implementation
of the classic Conway "Life".

Nick

--
# sigmask || 0.2 || 20030107 || public domain || feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),'' Ojdl!Wbshjti!=obwAcboefstobudi/psh?'')


Michael Foord wrote:

I really miss a decent Cellular Automota program and I was really
surprised that there weren''t lot''s of implementations for python.

I''ve seen ''cage'' around, but this uses curses so doesn''t work on
windoze :-(



I know that Kevin Altis at one point was experimenting with hooking up
CAGE to PythonCard; I don''t know how far he got or whether it eventually
got released (as a PythonCard sample). Martijn Faassen was kind enough
to let me know about a CAGE integration he did for pygame, which
apparently is working and he sent me sample code (and I''m sure he''d be
happy to send it to you).

But even if neither of those things interest you, there _is_ a Python
curses module that works with Windows:

http://flangy.com/dev/python/curses/

I haven''t looked at it recently, but when it was initially announced I
checked CAGE out in it and found to my pleasant surprise that it worked
flawlessly and I didn''t see any problems (the Web page even mentions my
report). As I said I haven''t examined it recently, but I''m sure it''s
only improved in the meantime.

--
__ Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ Winners are men who have dedicated their whole lives to winning.
-- Woody Hayes


Michael Foord wrote:

I really miss a decent Cellular Automota program and I was really
surprised that there weren''t lot''s of implementations for python.



While not in Python (but Java instead), I''ve written an
online one-dimensional cellular automata simulator.
http://www.xs4all.nl/~irmen/comp/cellular.html

It creates those funny pictures you may recognise from
Stephen Wolfram''s book.

If you want the source code, let me know. It''s probably easy
to convert to Python :)

--Irmen


这篇关于人工生活 - 为别人做的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆