https://github.com/citiususc/citius-invaders

An old-style HTML5 arcade game for teaching genetic algorithms to kids, made with PhaserJS

https://github.com/citiususc/citius-invaders

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.5%) to scientific vocabulary

Keywords

evolutionary-algorithms genetic-algorithm phaser-game phaserjs space-invaders
Last synced: 5 months ago · JSON representation

Repository

An old-style HTML5 arcade game for teaching genetic algorithms to kids, made with PhaserJS

Basic Info
Statistics
  • Stars: 25
  • Watchers: 3
  • Forks: 8
  • Open Issues: 0
  • Releases: 0
Topics
evolutionary-algorithms genetic-algorithm phaser-game phaserjs space-invaders
Created over 9 years ago · Last pushed over 7 years ago
Metadata Files
Readme License

README.md

CiTIUS Invaders

An old-style arcade game to learn evolutionary algorithms and genetic algorithms.

Play the web version!

About

This game was created to explain the basic concepts of evolution and genetic programming to college students. The game starts with 4 invaders that mate themselves. Each invader has different genes that codify their behavior, such as speed, probability of changing direction, size, color... During evolution time, the invaders start mating in order to create new invaders that inherit the attributes of their parents. Best invaders (invaders with higher fitness) have more probability to be selected for mating. The fitness of an invader corresponds with the number of evolutions that it has survived. This mechanism allows the invaders to improve their behavior against the player over time by learning the best set of features that allows them to survive.

If you want to learn how the game is implemented, Siraj Raval made a great analysis of the game, which is available on Youtube:

IMAGE ALT TEXT HERE

How to play

Controls are very easy. Just use left/right arrow to move your robot and space to shot. The goal is to keep the number of invaders below 100, otherwise the game is over. There are always at least 4 invaders (elitism), which are protected with blue shields. The player earns 1 point for each evolution time.

Code

There are two versions of the game, a python version built on top of the SGE Game Engine and a HTML5 version made with Phaser. You can play the HTML5 version here: https://citiususc.github.io/citius-invaders

Authors

This game was made by Tomás Teijeiro and Pablo Rodríguez Mier because why not?

The music was composed by the amazing Constantino Antonio García Fernández, who, despite being involved in thousands of projects and activities, still finds time to help his friends with these stupid things.

Screenshots

Main menu

Main menu

Game screen

Game screen

License

This project is licensed under the terms of the MIT license.

Owner

  • Name: CiTIUS
  • Login: citiususc
  • Kind: organization
  • Email: citius@usc.es
  • Location: Santiago de Compostela

Centro Singular de Investigación en Tecnoloxías Intelixenteas da Universidade de Santiago de Compostela

GitHub Events

Total
Last Year

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 107
  • Total Committers: 3
  • Avg Commits per committer: 35.667
  • Development Distribution Score (DDS): 0.523
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
pablo.rodriguez.mier p****r@u****s 51
T. Teijeiro t****o@u****s 41
Pablo Rodríguez Mier p****r@g****m 15
Committer Domains (Top 20 + Academic)
usc.es: 2

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels