speedruner.py

Created by ciel

Created on June 19, 2022

618 Bytes


from conway import*
def speedruner(gen_runer = 200, generations=20, length = 32, width = 20):#40*25
    map = [[0 for x in range(length)] for y in range(width)]
    generation_counter = 1
    init_map(width, length, map)
    for i in range(1, gen_runer):
        logic(width, length, map, generation_counter)
        generation_counter += 1    
    print_map(width, length, map)
    for i in range(1,generations):
        time.sleep(1.16)
        logic(width, length, map, generation_counter)
        clean_map()
        print_map(width, length, map)
        generation_counter += 1 ;
speedruner(50)

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our <a href="https://www.numworks.com/legal/cookies-policy/">cookies policy</a>.