{"id":17070358,"url":"https://github.com/owainkenwayucl/fortlife","last_synced_at":"2025-04-12T19:40:53.440Z","repository":{"id":81522052,"uuid":"93791672","full_name":"owainkenwayucl/fortlife","owner":"owainkenwayucl","description":"Conway's Game of Life written in Fortran 77 for FreeDOS","archived":false,"fork":false,"pushed_at":"2021-10-08T13:40:13.000Z","size":1266,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T13:54:03.032Z","etag":null,"topics":["braille","codepage-437","console","conway-s-game-of-life","fortran","freedos","gfortran","ifort","linux","nvfortran","openwatcom","pbm","unicode"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/owainkenwayucl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-06-08T21:03:20.000Z","updated_at":"2024-07-14T23:28:11.000Z","dependencies_parsed_at":"2023-09-25T00:41:20.806Z","dependency_job_id":null,"html_url":"https://github.com/owainkenwayucl/fortlife","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"a5d19d0516e35227ccc68d406cae4fda3bcadb26"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainkenwayucl%2Ffortlife","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainkenwayucl%2Ffortlife/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainkenwayucl%2Ffortlife/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainkenwayucl%2Ffortlife/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owainkenwayucl","download_url":"https://codeload.github.com/owainkenwayucl/fortlife/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248624843,"owners_count":21135508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["braille","codepage-437","console","conway-s-game-of-life","fortran","freedos","gfortran","ifort","linux","nvfortran","openwatcom","pbm","unicode"],"created_at":"2024-10-14T11:30:40.843Z","updated_at":"2025-04-12T19:40:53.414Z","avatar_url":"https://github.com/owainkenwayucl.png","language":"Fortran","funding_links":[],"categories":["Games"],"sub_categories":["Transition to Modern Fortran"],"readme":"# Conway's Game of Life in Fortran for FreeDOS\n\nThis is a fairly simple implementation of Conway's Game of Life, written in Fortran 77 for the Open Watcom compiler on FreeDOS, but which also compiles on GFortran on Linux.\n\n![Photo of fortlife running on FreeDOS](https://pbs.twimg.com/media/DBexs7TW0AIRzaK.jpg:large)\n\n**Note** - *the image above shows an older version which does not clear screen between frames.*\n\n## Compilation\n\nOn FreeDOS, install the Open Watcom Fortran compiler, download the repository and then compile the code by running `wmake`.  Optionally, you can also compile a tool for displaying PBM files by running `wmake show.exe`.\n\nOn Linux, you can compile the code with gfortran by running `make -f Makefile.gnu`.  You can also build the show utility, but you are better of using basically any other image viewer.\n\nThere are also makefiles for Intel Fortran (`Makefile.if`) and Nvidia Fortran (`Makefile.nv`).  Neither of these currently support Braille output.\n\n(Testing has shown that the Linux version of `life.exe` compiles successfully under Cygwin, the only downside being font support in MinTTY).\n\nThere is a special Linux version if your font has braille characters, which can be run by running `life.braille`.\n\n\n## Running\n\nTo run the code, run `life.exe \u003cinputfile\u003e` for some input PBM file.  Some examples can be found in the `input` directory.\n\nThe program will draw the file into the terminal, move forward a generation with each press of the `Enter` key. Press `ctrl-c`, `Enter` to quit (the last `Enter` is not necessary on Linux).\n\nHere is the output when run on Linux (note, you need a Unicode supporting terminal):\n\n![Screenshot of fortlife running on Linux](images/fortlife-linux.png)\n\nHere is the output of the braille version:\n\n![Screenshot of fortlife running on Linux](images/fortlife-braille.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowainkenwayucl%2Ffortlife","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowainkenwayucl%2Ffortlife","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowainkenwayucl%2Ffortlife/lists"}