首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >对于程序员来说,在像素网格上模拟生活的旧linux游戏是什么?

对于程序员来说,在像素网格上模拟生活的旧linux游戏是什么?
EN

Unix & Linux用户
提问于 2014-01-16 09:51:20
回答 2查看 347关注 0票数 2

我记得大约10年前,在正式的Linux存储库中,有一个程序,模拟一个像素网格上的生物生命(每个像素占用一个像素)。“游戏”的目的是为这些生物编写一个代码,它可以在这个世界中生存和复制(即您编辑C++源代码并重新编译项目以添加一个新的生物)。你也可以决定一些参数,比如你的生物会有多强。然而,所有这样的“好”特征都是以根据预定义的公式增加对这些生物的消耗为代价的。

编译后,您可以运行它,并观察您的生物,它们是(大部分)绿色矩形上的像素(大部分“世界”被草之类的东西“占据”)。观察这些生物是如何生存、繁殖或灭绝的。

有人能告诉我,这个“游戏”的名字是什么?

很可能是在RedHat存储库中

经过搜索,我没有找到最初的程序。似乎,最近的现代“亲戚”是阿维达

EN

回答 2

Unix & Linux用户

发布于 2014-01-16 10:32:46

你在想“康威的生命游戏”

参见维基百科上的模式/algos详细信息

顺便说一句:它不仅仅是linux,它可以用多种语言进行编码,用于许多平台。

票数 3
EN

Unix & Linux用户

发布于 2014-01-16 10:37:10

1984年,使用编程游戏语言发布了名为核心战争红码。许多实现存在(Ed)。用来裁判核战争战役的模拟器叫做MARS,内存阵列红码模拟器。一个著名的模拟器是pmars。pmars的来源可以在sourceforge上找到。例如,您可以在Gentoo上找到包,如pmars-sdl

从手册中:

代码语言:javascript
复制
NAME
       pmars - portable corewar system with ICWS'94 extensions

SYNOPSIS
       pmars [ option ...  ] file1 [ file(s) ]
DESCRIPTION
       pMARS  (portable  Memory  Array Redcode Simulator) is a corewar interpreter with
       multi-platform support.  pMARS currently runs  on  UNIX  systems,  PC/DOS,  VMS,
       Amiga  (AmigaDOS command line), and the Mac.  pMARS implements the ICWS'94 draft
       standard, but can also be used in ICWS'88  mode.  The  base  system  includes  a
       graphical  core display for UNIX (curses, X-windows), PC/linux (svgalib), PC/DOS
       and the Mac (see APPENDIX). A line-oriented debugger  is  included  to  help  in
       writing warriors for the ICWS'94 draft standard.

       pMARS  runs one or more warriors written in Redcode that are provided as file(s)
       on the command line.  Running a single warrior is supported for  debugging.  Two
       warriors  are pitted against each other for standard play, but up to 36 warriors
       can be named for "multi-warrior" core war. If the  warrior(s)  assemble  without
       error  they  are  loaded  into  the  core array and executed in round-robin mode
       starting with the first warrior.  Warrior 1 is loaded starting at core  position
       0,  warrior  2, 3, etc., at either a random or fixed position.  For fairness the
       starting order is rotated after each round.
票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/109587

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档