Skip to content

Add 5 language implementations and comprehensive language documentation#1

Open
Copilot wants to merge 4 commits intomainfrom
copilot/add-game-of-life-languages
Open

Add 5 language implementations and comprehensive language documentation#1
Copilot wants to merge 4 commits intomainfrom
copilot/add-game-of-life-languages

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 3, 2025

Implements Game of Life in 5 additional languages and creates documentation describing all languages in the repository with their suitability for this algorithm.

New Implementations

Added implementations in:

  • TypeScript (cgol.ts) - Type-safe JavaScript variant
  • Kotlin (cgol.kt) - Modern JVM language
  • Haskell (cgol.hs) - Pure functional approach
  • Scala (cgol.scala) - Functional/OOP hybrid
  • F# (cgol.fs) - Functional-first .NET

All follow existing conventions: 50×30 grid, 20% initial density, toroidal wrapping, 100ms intervals, ANSI terminal rendering.

Documentation

Created LANGUAGES.md documenting all 30+ languages with:

  • Primary use case of each language
  • Suitability rating for Game of Life (Excellent/Good/Limited/Poor)
  • Specific strengths and weaknesses for this algorithm
  • Summary categorizing languages by suitability

Updated README.md with new language entries and reference to language documentation.

Example

// TypeScript implementation with type safety
const WIDTH = 50;
const HEIGHT = 30;

function computeNextState(grid: boolean[][]): boolean[][] {
    return Array(HEIGHT).fill(null).map((_, y) =>
        Array(WIDTH).fill(false).map((_, x) => {
            const alive = grid[y][x];
            const neighbors = countNeighbors(grid, x, y);
            return alive ? (neighbors === 2 || neighbors === 3) : neighbors === 3;
        })
    );
}
Original prompt

Select additional languages and implement game of life.
Create a document describing each language we used in this repository. Describe for each language the main purpose and if it is good for game of life or not.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Dec 3, 2025
Copilot AI and others added 3 commits December 3, 2025 21:35
…mentation

Co-authored-by: SimonWaldherr <198920+SimonWaldherr@users.noreply.github.com>
Co-authored-by: SimonWaldherr <198920+SimonWaldherr@users.noreply.github.com>
Copilot AI changed the title [WIP] Select languages and implement game of life Add 5 language implementations and comprehensive language documentation Dec 3, 2025
Copilot AI requested a review from SimonWaldherr December 3, 2025 21:41
@SimonWaldherr SimonWaldherr marked this pull request as ready for review April 2, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants