Find Jobs
Hire Freelancers

Rock Paper Scissors python

$10-30 USD

In Progress
Posted over 4 years ago

$10-30 USD

Paid on delivery
#!/usr/bin/env python3 """This program plays a game of Rock, Paper, Scissors between two Players, and reports both Player's scores each round.""" moves = ['rock', 'paper', 'scissors'] """The Player class is the parent class for all of the Players in this game""" class Player: def move(self): return 'rock' def learn(self, my_move, their_move): pass def beats(one, two): return ((one == 'rock' and two == 'scissors') or (one == 'scissors' and two == 'paper') or (one == 'paper' and two == 'rock')) class Game: def __init__(self, p1, p2): [login to view URL] = p1 [login to view URL] = p2 def play_round(self): move1 = [login to view URL]() move2 = [login to view URL]() print(f"Player 1: {move1} Player 2: {move2}") [login to view URL](move1, move2) [login to view URL](move2, move1) def play_game(self): print("Game start!") for round in range(3): print(f"Round {round}:") self.play_round() print("Game over!") if __name__ == '__main__': game = Game(Player(), Player()) game.play_game()
Project ID: 21906760

About the project

5 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average $30 USD for this job
User Avatar
Hello there, I am an expert python developer with years of experience, I also have great experience in the field of AI ML/DL. I have worked on multiple python projects for both companies and individuals, I have exceptional analytical skills, and I am considered to be a great problem solver. I'd like to work on your project and help you accomplish it. Looking forward to talking to you. Thanks!
$30 USD in 1 day
5.0 (35 reviews)
5.1
5.1
User Avatar
Hi, I have read your project description. I have few queries before I can begin the work. Can we discuss the same through chat? I shall endeavor to exceed your expectations. And I'm confident that I can complete your project on time and within your budget. I can achieve the results that you are asking for. Please initiate chat for further discussion. I will do my best for you , with a Positive Hope! Regards
$63 USD in 4 days
4.8 (12 reviews)
3.9
3.9
User Avatar
Hello, so you already provided the code for the "Rock, paper, scissors" game. I'd be happy to help you with the next step, whatever it is, I'm sure I'm qualified for it. I'd like to hear the details from you if you are interested.
$15 USD in 3 days
5.0 (2 reviews)
1.3
1.3
User Avatar
Hello, I read your project description very carefully. I think i am the best freelance for your project. My main skills is under below... Python Developer C++ Developer C Developer Web Designing Content writing I can start work right now. I will give you 100% accurate task and 24/7 days supports
$20 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Channelview, United States
5.0
1
Payment method verified
Member since Oct 21, 2019

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.