Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Aug 25, 2022. It is now read-only.
/wwwinPublic archive

Interactive "arcade-like" football simulation engine.

License

NotificationsYou must be signed in to change notification settings

zediogoviana/wwwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netlify StatusFOSSA Status

Who Would Win is a football simulation engine developed inReact.

(only works in desktop browser)

Based on my previousJava experimentsoccer-simulation-engine,WWWin is anarcade-like football (soccer) simulation engine.

Create your team by:

  • adding your custom players one by one
  • chunk upload from acsv file
  • generate a random roster and starting lineup.

Every player can later be edited.

How it Works

Interact with different variables and lineups, observing the impact on the simulation.

It takes account the overall value of the players starting 11, players age,the form of the teams, supporters present on the stadium between each teamsand the team playing style. The referee it is also taken in account, with its personality value.

After all this, luck factors and others are also taken into value in order to simulate a game.

Player variables

  • Overall value: Highest values, higher chance of scoring or defending with success.
  • Age: The older the roster, the more "weak" the players get with game time passing by, reducing the chance of scoring or defending.

Team variables definition

  • Team form:Integer between 0-100, being0 the lowest form possible and100 the highest.
    • Highest values gives more chances of scoring goals and winning.
  • Supporters:Integer between 0-100, being0 the lowest supporting from fans possible and100 the highest.
    • The team with most supporters has some advantage.
  • Playing Style:Integer between 0-100, being0the most defensive possible, and100 the most attacking.
    • A team with a high attacking playing style has more chance of attacking and scoring, but is more vulnerable on the defense side.

Number of Players and Tactics definition

It is possible to select the number of players in the game and different formations for each team.

Game Types and Formations:

  • 11v11
    • 4, 3, 3
    • 3, 5, 2
    • 4, 4, 2
  • 7v7
    • 2, 3, 1
    • 3, 2, 1
    • 2, 2, 2
  • 5v5
    • 1, 2, 1
    • 2, 1, 1

Referee variables

  • Personality:Integer between 0-100. The higher a personality value of a referee the stricter he is, and higher the chance of giving a red card to a team.
    • A team with sent off players is eavily penalised.

Roster Upload

One by One

You just need to fill in the form with the following info:

  • Name
  • Position
  • Attack Value
  • Defence Value
  • Birth Year

Chunk upload

In order to run you need to use acsv file with the infos of each team's players.Inresources folder there is the corresponding files to test.

Thecsv has the following composition:

  • First line (Header)
name,position,attack,defense,birthYear
  • Following lines (Player Information)
PlayerName,PlayerPosition,Attack,Defense,PlayerBirthYear(...)

Where:

  • Position:
    • G: goal-keeper
    • D: defender
    • M: midfielder
    • A: attacker
  • Attack and Defense:Integer between 0-100
  • Birth Year:YYYY

Here you can find two differentcsv examples to try

Screenshots

5v5 Game

Example Output1

11v11 Game

Example Output1

Simulation Game Log

Example Output1

Future work

  • Substitutions
  • More realistic simulation
  • Injuries
  • Yellow cards and Red cards with accumulation
  • Maybe implement withreact-redux

About

Interactive "arcade-like" football simulation engine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp