my project on the build a car racing game with the help of python and c++
Бюджет ₹750-1250 INR / час
Job Description:
#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!")
11 фрилансеров(-а) готовы выполнить эту работу в среднем за ₹964/час
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 Больше
Hey there, I understand that you need help with creating a simple racing game in C++ and Python. I am proficient in both programming languages, and I can help you create the game as per your requirements. For the C++ Больше
IF YOU GIVE ME THIS ILL COMPLETE THIS WORK WITHIN FEW DAYS AND ILL COMPLETE THIS WORK WITH IN TIME AND IT WILL BE MORE PERFECT AND IT WILL BE WITHIN ON TIME
I am currently working and a student at IIT delhi and right now currently in the field of Computer science