File:Conways game of life breeder animation.gif

Conways_game_of_life_breeder_animation.gif(379 × 192 像素,檔案大小:753 KB,MIME 類型:image/gif、​循環、​499 畫格、​11秒)


描述 Animation of breeder pattern in Conway's Game of Life
日期 (UTC)
來源
作者
授權許可
(重用此檔案)
See below

Recognition

維基百科

 該圖片為英文維基百科的特色圖片(Featured pictures)。它被認定為最佳圖像之一。

如果您覺得本檔案在維基共享資源上也堪稱特色,您可以自願提名它
如果您還有可以在合適授權條款下發表的相似品質的圖像,歡迎您上傳標註授權條款提名之

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
w:zh:創用CC
姓名標示 相同方式分享
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
  • 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。

Source Code

The first generation is the bmp file 000001.bmp (which should be saved in the same folder as the script).

a=file('000001.bmp','rb+')
head=a.read(54);mat=[];wid=379;hei=192
for l in range(wid): mat.append([False]*hei)
for y in range(hei):
 for x in range(wid):
  mat[x][y]=(a.read(3)==chr(0)*3)
 useless=a.read(wid%4)
def num(x,y):
 options=[]
 options.append(mat[(x+1)%wid][(y  )%hei])
 options.append(mat[(x+1)%wid][(y+1)%hei])
 options.append(mat[(x  )%wid][(y+1)%hei])
 options.append(mat[(x-1)%wid][(y+1)%hei])
 options.append(mat[(x-1)%wid][(y  )%hei])
 options.append(mat[(x-1)%wid][(y-1)%hei])
 options.append(mat[(x  )%wid][(y-1)%hei])
 options.append(mat[(x+1)%wid][(y-1)%hei])
 return options.count(True)
def newgen():
 newmat=[]
 for l in range(wid): newmat.append([False]*hei)
 for y in range(hei):
  for x in range(wid):
   numnum=num(x,y)
   if not mat[x][y] and numnum==3: newmat[x][y]=True
   elif mat[x][y] and (numnum==2 or numnum==3): newmat[x][y]=True
 return newmat

for l in range(2,499):
 b=file(str(l).zfill(6)+'.bmp','wb+')
 b.write(head);mat=newgen()
 for y in range(hei):
  for x in range(wid):
   b.write(chr(255-255*int(mat[x][y]))*3)
  b.write(chr(0)*(wid%4))
 print chr(8)*30+str(l).zfill(6)+'.bmp finished.',

原始上傳日誌

This image is a derivative work of the following images:

  • Image:Conways_game_of_life_breeder.png licensed with Cc-by-sa-3.0, Cc-by-sa-3.0
    • 2008-11-02T13:34:51Z Hyperdeath 379x192 (2881 Bytes) {{Information |Description= Breeder pattern in Conway's Game of Life |Source=self-made |Date= |Author= [[User:Hyperdeath|Hyperdeath]] |Permission= |other_versions= }}

Uploaded with derivativeFX

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

406d5a6c42cc5ce754be6f55cf700814944031a4

斷定方法:​SHA-1 中文 (已轉換拼寫)

770,706 位元組

11.499999999999876 秒鐘

192 像素

379 像素

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2014年3月4日 (二) 22:03於 2014年3月4日 (二) 22:03 版本的縮圖379 × 192(753 KB)ProtiousReverted to version as of 01:30, 29 November 2008 - original version pauses for half a second at the end and shows the different parts of the breeder marked in different colors - better illustration
2012年3月17日 (六) 04:13於 2012年3月17日 (六) 04:13 版本的縮圖379 × 192(647 KB)AiyizoOptimized
2008年11月29日 (六) 01:30於 2008年11月29日 (六) 01:30 版本的縮圖379 × 192(753 KB)Protious{{Information |Description=Animation of breeder pattern in Conway's Game of Life |Source=*Image:Conways_game_of_life_breeder.png |Date=2008-11-29 01:23 (UTC) |Author=*derivative work: ~~~ *Image:Conways_game_of_life_breeder.png: [[User:Hyperde

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案: