With this algorithm you can see all best positions for a Team.

Overview

Best Positions

Imagine that you have a favorite team, and you want to know until wich position your team can reach

With this algorithm you can see all best positions for a Team.

Requirements

  • You need filled the position table dictionary
  • You need filled the next matches list

By default, we are using qatar 2022 playoffs All default data have info of 2022-01-26 16:06

Position Tables

current_position_table = {
    # Team, PJ, DGs, PTs
    'Brasil': (13, 23, 35),
    'Argentina': (13, 14, 29),
    'Ecuador': (14, 10, 23),
    'Colombia': (14, -1, 17),
    'Peru': (14, -5, 17),
    'Chile': (14, -1, 16),
    'Uruguay': (14, -7, 16),
    'Bolivia': (14, -8, 15),
    'Paraguay': (14, -9, 13),
    'Venezuela': (14, -16, 7),
}

Next Matches

next_matches = (
    # Match, Team vs Team
    (15, ('Ecuador', 'Brasil')),
    (15, ('Paraguay', 'Uruguay')),
    (15, ('Chile', 'Argentina')),
    (15, ('Colombia', 'Peru')),
    (15, ('Venezuela', 'Bolivia')),
    (16, ('Bolivia', 'Chile')),
    (16, ('Uruguay', 'Venezuela')),
    (16, ('Argentina', 'Colombia')),
    (16, ('Brasil', 'Paraguay')),
    (16, ('Peru', 'Ecuador')),
    (17, ('Argentina', 'Venezuela')),
    (17, ('Colombia', 'Bolivia')),
    (17, ('Paraguay', 'Ecuador')),
    (17, ('Brasil', 'Chile')),
    (17, ('Uruguay', 'Peru')),
    (18, ('Peru', 'Paraguay')),
    (18, ('Ecuador', 'Argentina')),
    (18, ('Venezuela', 'Colombia')),
    (18, ('Chile', 'Uruguay')),
    (18, ('Bolivia', 'Brasil')),
)

Usage

python3 index.py

If you want check another team you need change the variable that is inside __name__ condition

team_to_verify = 'Colombia'

response

Jornada 15 
Bolivia queda en Posición 6
Ecuador-Brasil: Gana Brasil
Paraguay-Uruguay: Gana Uruguay
Chile-Argentina: Gana Argentina
Colombia-Peru: Gana Peru
Venezuela-Bolivia: Gana Bolivia

Jornada 16 
Bolivia queda en Posición 4
Bolivia-Chile: Gana Bolivia
Uruguay-Venezuela: Gana Venezuela
Argentina-Colombia: Gana Colombia
Brasil-Paraguay: Gana Paraguay
Peru-Ecuador: Gana Ecuador

Jornada 17 
Bolivia queda en Posición 4
Argentina-Venezuela: Gana Venezuela
Colombia-Bolivia: Gana Bolivia
Paraguay-Ecuador: Gana Ecuador
Brasil-Chile: Gana Chile
Uruguay-Peru: Gana Peru

Jornada 18 
Bolivia queda en Posición 4
Peru-Paraguay: Gana Paraguay
Ecuador-Argentina: Gana Argentina
Venezuela-Colombia: Gana Colombia
Chile-Uruguay: Gana Uruguay
Bolivia-Brasil: Gana Brasil

Contributors

Feel free to usage this algorithm and if you want improvement something or comment please create an issue or create a pull request.

Improvements

  • add to every matches list the probabilities that has a team A to win another Team B
Owner
darlyn
Software Developer
darlyn
Minimal examples of data structures and algorithms in Python

Pythonic Data Structures and Algorithms Minimal and clean example implementations of data structures and algorithms in Python 3. Contributing Thanks f

Keon 22k Jan 09, 2023
Greedy Algorithm-Problem Solving

MAX-MIN-Hackrrank-Python-Solution Greedy Algorithm-Problem Solving You will be given a list of integers, , and a single integer . You must create an a

Mahesh Nagargoje 3 Jul 13, 2021
A* (with 2 heuristic functions), BFS , DFS and DFS iterativeA* (with 2 heuristic functions), BFS , DFS and DFS iterative

Descpritpion This project solves the Taquin game (jeu de taquin) problem using different algorithms : A* (with 2 heuristic functions), BFS , DFS and D

Ayari Ahmed 3 May 09, 2022
Implemented page rank program

Page Rank Implemented page rank program based on fact that a website is more important if it is linked to by other important websites using recursive

Vaibhaw 6 Aug 24, 2022
Pathfinding algorithm based on A*

Pathfinding V1 What is pathfindingV1 ? This program is my very first path finding program, using python and turtle for graphic rendering. How is it wo

Yan'D 6 May 26, 2022
Algoritmos de busca:

Algoritmos-de-Buscas Algoritmos de busca: Abaixo está a interface da aplicação: Ao selecionar o tipo de busca e o caminho, então será realizado o cálc

Elielson Barbosa 5 Oct 04, 2021
Implementation of Apriori algorithms via Python

Installing run bellow command for installing all packages pip install -r requirements.txt Data Put csv data under this directory "infrastructure/data

Mahdi Rezaei 0 Jul 25, 2022
QDax is a tool to accelerate Quality-Diveristy (QD) algorithms through hardware accelerators and massive parallelism

QDax: Accelerated Quality-Diversity QDax is a tool to accelerate Quality-Diveristy (QD) algorithms through hardware accelerators and massive paralleli

Adaptive and Intelligent Robotics Lab 183 Dec 30, 2022
causal-learn: Causal Discovery for Python

causal-learn: Causal Discovery for Python Causal-learn is a python package for causal discovery that implements both classical and state-of-the-art ca

589 Dec 29, 2022
A fast python implementation of the SimHash algorithm.

This Python package provides hashing algorithms for computing cohort ids of users based on their browsing history. As such, it may be used to compute cohort ids of users following Google's Federated

Hybrid Theory 19 Dec 15, 2022
RRT algorithm and its optimization

RRT-Algorithm-Visualisation This is a project that aims to develop upon the RRT

Sarannya Bhattacharya 7 Mar 06, 2022
Implementation of an ordered dithering algorithm used in computer graphics

Ordered Dithering Project In this project, we use an ordered dithering method to turn an RGB image, first to a gray scale image and then, turn the gra

1 Oct 26, 2021
A simple python implementation of A* and bfs algorithm solving Eight-Puzzle

A simple python implementation of A* and bfs algorithm solving Eight-Puzzle

2 May 22, 2022
8 Puzzle with A* , Greedy & BFS Search in Python

8_Puzzle 8 Puzzle with A* , Greedy & BFS Search in Python Python Install Python from here. Pip Install pip from here. How to run? 🚀 Install 8_Puzzle

I3L4CK H4CK3l2 1 Jan 30, 2022
It is a platform that implements some path planning algorithms.

PathPlanningAlgorithms It is a platform that implements some path planning algorithms. Main dependence: python3.7, opencv4.1.1.26 (for image show) Tip

5 Feb 24, 2022
A python implementation of the Basic Photometric Stereo Algorithm

Photometric-Stereo A python implementation of the Basic Photometric Stereo Algorithm Result Usage run Photometric_Stereo.py Code Tree |data #原始数据,tga格

20 Dec 19, 2022
A Python program to easily solve the n-queens problem using min-conflicts algorithm

QueensProblem A program to easily solve the n-queens problem using min-conflicts algorithm Performances estimated with a sample of 1000 different rand

0 Oct 21, 2022
Ralebel is an interpreted, Haitian Creole programming language that aims to help Haitians by starting with the fundamental algorithm

Ralebel is an interpreted, Haitian Creole programming language that aims to help Haitians by starting with the fundamental algorithm

Lub Lorry Lamysère 5 Dec 01, 2022
This application solves sudoku puzzles using a backtracking recursive algorithm

This application solves sudoku puzzles using a backtracking recursive algorithm. The user interface is coded with Pygame to allow users to easily input puzzles.

Glenda T 0 May 17, 2022
Robotic Path Planner for a 2D Sphere World

Robotic Path Planner for a 2D Sphere World This repository contains code implementing a robotic path planner in a 2D sphere world with obstacles. The

Matthew Miceli 1 Nov 19, 2021