GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - eozgit/footballsim: A high-performance, headless football simulation engine built in TypeScript. A modernized fork of footballSimulationEngine featuring strict type safety, modular physics, and automated CI/CD distribution.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

424 Commits
424 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.husky
.husky
 
 
scripts
scripts
 
 
src
src
 
 
.dependency-cruiser-known-violations.json
.dependency-cruiser-known-violations.json
 
 
.dependency-cruiser.cjs
.dependency-cruiser.cjs
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.prettierrc
.prettierrc
 
 
.releaserc
.releaserc
 
 
LICENSE
LICENSE
 
 
eslint.config.mjs
eslint.config.mjs
 
 
history.md
history.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

footballsim

A modernized, TypeScript-first engine for simulating professional football matches.

This project is a high-performance fork of the original footballSimulationEngine. It has been rebuilt with a focus on strict type safety, modular architecture, and modern developer tooling.


โšฝ Live Demo & Visualization

While the engine is headless by design, you can see it in action via the official demo application: ๐Ÿ‘‰ footballsim-demo


๐Ÿš€ Key Modernizations

  • Strict TypeScript: Completely ported to TypeScript with NodeNext module resolution for enterprise-grade safety.

  • High-Performance Physics: Refined ball movement, trajectory calculations, and player collision logic.

  • Advanced AI Intent: Sophisticated decision-making trees for player movement, tackling, and attacking threats.

  • Developer Experience: Fully integrated with Vitest for testing and ESLint with SonarJS for deep code analysis.

  • Automated Releases: Continuous delivery pipeline using Semantic Release.


๐Ÿ“ฆ Installation

npm install footballsim

๐Ÿ› ๏ธ Basic Usage

The engine is designed to be integrated into any Node.js environment. You simply initialize a game with team and pitch configurations, then iterate through match steps.

import { initiateGame, playIteration } from 'footballsim';

// 1. Setup your match
const matchDetails = initiateGame(team1, team2, pitchConfig);

// 2. Run the simulation loop
while (!matchDetails.matchFinished) {
  const currentStep = playIteration(matchDetails);
  console.log(`Current Score: ${currentStep.score[0]} - ${currentStep.score[1]}`);
}

๐Ÿ—๏ธ Technical Architecture

The engine follows a modular "Intent-Action-Physics" flow:

  1. Intent Logic: Players analyze their surroundings and decide on an action (pass, shoot, move).

  2. Action Handler: Validates and executes the chosen intent based on player stats and game state.

  3. Physics Engine: Resolves the final movement of the ball and players on the pitch, handling boundaries and collisions.


๐Ÿงช Development & Quality

We maintain high standards for engine reliability:

  • Unit Testing: Over 500+ tests covering everything from offside logic to freekick positioning.

  • Coverage: Full transparency on logic and type coverage.

  • Architecture Integrity: Automated dependency cruising to prevent circular logic.

# Run the test suite
npm test

# Generate coverage reports
npm run coverage:all

๐Ÿ“œ License

This project is licensed under the ISC License. Originally forked from GallagherAiden/footballSimulationEngine.

About

A high-performance, headless football simulation engine built in TypeScript. A modernized fork of footballSimulationEngine featuring strict type safety, modular physics, and automated CI/CD distribution.

eozgit.github.io/footballsim-demo/

Topics

football-simulationgame-engineheadless-enginesimulation-enginesoccer-simulationsports-analytics

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.