my project on the build a car racing game with the help of python and c++ - 23/03/2023 01:48 EDT

Closed Posted 1 year ago Paid on delivery
Closed

#include <iostream>

#include <cstdlib>

#include <ctime>

using namespace std;

int main() {

srand(time(NULL)); // initialize random seed

int position = 0; // initialize car position to 0

// loop until car reaches finish line

while (position < 10) {

int move = rand() % 3 + 1; // generate random number between 1 and 3

position += move; // move car

cout << "Car moved " << move << " spaces. Position: " << position << endl;

}

cout << "Car wins!" << endl;

return 0;

}

for python

import random

position = 0 # initialize car position to 0

# loop until car reaches finish line

while position < 10:

move = [login to view URL](1, 3) # generate random number between 1 and 3

position += move # move car

print(f"Car moved {move} spaces. Position: {position}")

print("Car wins!")

Article Writing Data Entry Excel Software Testing Web Security

Project ID: #36249142

About the project

10 proposals Remote project Active 11 mos ago

10 freelancers are bidding on average $22/hour for this job

robartint

Hello I am a professional python developer. My main specializations are automation, web scrapers and bots development. I have already developed over 200 scrapers. From the simplest (for example, a competitor's price More

$20 SGD / hour
(3 Reviews)
2.8
webpixxelshikha

Dear Employer, Greetings of the day We hope our job proposal finds you in the best of conditions. Your job post intrigued an attraction and we thought of sending a proposal so that we could get connected. Deliverab More

$25 SGD / hour
(0 Reviews)
0.0
Gowthamireddy22

I am having a good knowledge in python programming and i am having certifications in python programming. I can help you to build project.

$25 SGD / hour
(0 Reviews)
0.0
illanaidu098

hello sir/ma'am , i am hemanth naidu , i am a experianced python coder having nearly two years of experience and developed many games and apps including snake game, pop game ,car racing game and certified CBSE board More

$23 SGD / hour
(0 Reviews)
0.0
tuanna2607

Hi, I have just read your requirement and very interested in your C++ Car Racing game project. I have 20+ years experience in Software Development and the C/C++ is my top skill. As for rich experience, CPU scheduling/P More

$20 SGD / hour
(0 Reviews)
0.0
GuruDarshan07

Expert in data writing and typing .... Very efficient worker and the project will be submitted as soon as possible before the time given.

$20 SGD / hour
(0 Reviews)
0.0
ishikabarik

i am a good copy typing i can do this job i hope that you will give this opportunity to me i will able to do this

$20 SGD / hour
(0 Reviews)
0.0
saiddz00

Hi, I am an expert in C/C++ and I can help with any kind of project whether it's games or applications or 3d software. I work fast and efficiently and give a good result. send me a message . I will love to work with yo More

$25 SGD / hour
(0 Reviews)
0.0
suna0

Hello there, You are looking for a freelance developer to create a car racing game using C++ and Python programming languages. If you are interested in working with me as a candidate for this project, I can provide you More

$20 SGD / hour
(0 Reviews)
0.0