Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 2.08 KB

README.md

File metadata and controls

63 lines (41 loc) · 2.08 KB

Premier League Match Simulation

clone git repo by using following command:
git clone https://github.com/ismayil-dev/price-parser.git

Short description

-There are four teams in the league

-Standing has (scoring, points, goal difference, etc.) will be the same as the rules of the Premier League

-You can play match week by week or play all weeks at once

-Scores generated randomly

-Standing are updated due to match results

About championship prediction

When you play every week you will see "Championship Predictions" table. It automatically calculate probability by custom algorithm by given match results and standings. Actually there are many different ways and algorithms to predict championship because of given data. For simplicity I wrote custom algorithm that calculates probability of champions based on win games, score and GF (goal for) data.

Furthermore to get high prediction result we can use Random forest, K-nearest, Linear or Logistics regression algorithms. Of course it will take much time and require large datasets.

Installation

Laravel version: 9.0

Project is Dockerized and used Sail.

After clone repository go to project directory and run

Docker

If you're in Windows environment and use WSL based on Ubuntu for dockerization you need to run following command:

./vendor/bin/sail up -d

For more information Laravel Getting Started On Windows

Alias:

alias sail='bash vendor/bin/sail'

Project

sail composer u

sail npm i

sail npm run dev

cd copy .env.example .env

sail artisan key:generate

Database configurations

You need create two databases. First for project and second is for testing. You can configure .env.testing to run tests

For project please configure your .env file

After configure environments run

sail artisan migrate --seed