Port a bit of code with PHP to Python
There is a little code on PHP, which as input data receives the match account and determines the "played or not" specific bet.
Examples of code:
$score = new TennisScore("2:0 (6:1 6:2)");
$result = $score->getResult("WIN__P1"); // true
#WIN__P1 - the win bet P1
$score = new SoccerScore("2:1 (1:1) 90:00");
$result = $score->getResult("TOTALS_UNDER(2.5)"); // false
#TOTALS_UNDER(2.5) - Total Rate Less than 2.5
You need to delete the code of the objects in Python.
Types of bets:
Victory for match/set/time
Totals / forums for match / set / time
Individual total per match/set/time
The PHP code is available in the attached file.
I will be happy to answer questions about the essence.
Applications 1
Client's review of cooperation with Vladislav X.
Port a bit of code with PHP to PythonWe do not work for the first time. Everything is clear. I recommend it.
![]()
Freelancer's review of cooperation with client
Port a bit of code with PHP to PythonWe work for the second time.
Set up the task and contact at height.
I recommend)
-
555 35 1 3 I understand PHP and Python. I will be able to fulfill your task.
-
222 15 0 I have experience with Python and PHP. I can fulfill the assigned task. Go to turn.
-
324 7 0 Hi, I looked at the originals.
I am ready to help you with your problem.
I would be very interested in the possible examples of the introduction/output of the program, before starting the work. Then I would be able to write tests that would verify that the program works properly. The more different input-output (describing different situations) will be, the better.
You need to delete the code of the objects in Python.
You think you need to rewrite all the 4 files on Python, right?
Execution period 2 days.
Current freelance projects in the category Python
Need a bot developer (BAS / Python) for automating a loyalty website.
136 USD
I'm looking for an experienced developer to create a bot that will automate registration and bonus collection on the website (loyalty program). What the bot should do: Full automation of the process: from registration to receiving the result (voucher). Work with SMS services… Python, Bot Development ∙ 10 hours 14 minutes back ∙ 18 proposals |
BuzzPost automation for Facebook in IsraelThe project already exists and it works - the task is to solve the issue of Facebook restrictions when the number of posts per hour exceeds 3-4 (from 7 AM to 12 AM), client accounts are restricted by Facebook. Website - https://buzzpost.co.il/ Also, look for loopholes in the… Python, Customer Support ∙ 14 hours 57 minutes back ∙ 8 proposals |
Creation of a TikTok farm with income generation
601 USD
Looking for a person who can write software for a TikTok farm, so we can generate traffic and earn income. We are seeking a ready-made solution with a full cycle. Python, Bot Development ∙ 3 days 9 hours back ∙ 16 proposals |
AI Commenting Platform for TikTok and Instagram.Project Goal Develop a system that allows managing a large number of TikTok and Instagram accounts and automatically posting relevant comments under selected videos using AI. Main Functionality1. Account Management It is necessary to implement the ability to connect accounts:… AI & Machine Learning, Python ∙ 4 days 17 hours back ∙ 23 proposals |
Build a customer classification model1. There is client data in Mongo/SQL (approximately 20,000 entries with raw data). 2. It is necessary to build features and a classification model of clients into behavioral groups based on this data. 3. The project should be completed in Python. AI & Machine Learning, Python ∙ 6 days 11 hours back ∙ 45 proposals |