Share your repls and programming experiences

← Back to all posts
Rock! Paper! Scissors! Online!
proryan (65)

Rock! Paper! Scissors! ONLINE!!!

Don't have anyone at home to play rock paper scissors. Well know just text your friend this project and play online! Play 3 rounds of online rock, paper, scissors. It does have added leave detection so it won't crash when someone leaves in the middle of the game.

I spent a lot of time perfecting the leave detection...

I took one of the most popular beginner project and made it online. I do plan to make a tutorial on how to make something online like this.

This is just the client side of the program. If you are really interested and just can't wait for the tutorial. Here is the link to the server-side:

https://repl.it/@proryan/Server-for-Online-Rock-Paper-Scissors

I'm going to make a package based on this online engine. Tell me in the comments what I should advanced functions I should add. Its basically python's socket package but without the ip addreses.

Want more of a explanation on the package I'm trying to make or want ot help? Look down below...


Can't understand a thing I'm saying and don't want any business with it... Run the program!!!



Ok for those who want to either maybe want to help or just want more information about the package here it is:

Well for a first, you wouldn't have to host your server on domain name(like https://example.com) and instead on any subdomain or port. You could even host the server on one of repl.it's subdomains. Second, the package should be easier to use than python's builtin socket package. Most people just want to make a simple chat in python, they don't want to copy and paste code that they don't how it works or they don't know how to tweak. Most tutorials on youtube for a chat in python with sockets is with javascript and lot of beginners don't want to use javascript because they don't know its syntax. Most beginners get confused with stuff like "IF_INET". Though I do plan on adding many advance functions for professional developers, the first release of the package will be very simple with just basic functions such as send and receive. Eventually the functions will be advance stuff...

So know that you know all the details of the package... Do you want to help?

If you do comment down below and give me a link to your best project.

Note: Python developers accepted only...

Note: If you do find any errors please do tell me in the comments....

For all those people who complain that the wait time is too long: YOU're supposed to find a friend to play with you...(assuming you have friends)

Comments
hotnewtop
OldWizard209 (959)

You might want to make a bot who can play against you cuz it takes ages to connect with another person online (because very few people are). @proryan . But I see the effort you put into this is u get an upvote.

proryan (65)

@OldWizard209 Thank you so much for the suggestion, I do realize that it is a long wait time to find a another player. That's why I suggest you text or message your friend the link and then you guys should play. I never expected this be so popular that their were players on it 24/7.

OldWizard209 (959)

That's why I suggest you text or message your friend the link and then you guys should play

Thas the problem, I don't have friends :(
@proryan

Whippingdot (378)

NOOOOO i got matched up with someone who left their computer running. WHHYY. i was going to use a different browser so I could play myself

Smart0ne (694)

Wow! Thank you for this! I was trying to figure out how to do this, but I kept on failing. Thanks again!

proryan (65)

@Smart0ne If you want you can follow my tutorial on it... I'm still working on the tutorial though...

Smart0ne (694)

@proryan Cool! :) I'll be following it.

proryan (65)

@Smart0ne Sure I'll release the tutorial to the public by next week.

Brendan23 (56)

anyone want to play?(I don't have friends😭😢)

proryan (65)

@PokemonCoder You should already be connected to the server, but its up to you to call a friend to play...

PokemonCoder (3)

@proryan the client program is blank, why?

proryan (65)

@PokemonCoder I think that is a problem on your side...

proryan (65)

Colors are now added!

GeumjuKim (18)

hey chat would be cool! Can you make that? CHALLENGE! (You don't have to, just a suggestion.)

proryan (65)

@GeumjuKim Yes I could make a chat but that would be a little repetitive since a LOT of people in repl.it have post a chat...

GeumjuKim (18)

@proryan ok sure

read my bio - im a noob.

GeumjuKim (18)

You have to find someone, right? Well, you actually have to find someone who's not AFK.

GeumjuKim (18)

@proryan sometimes somebody has the tab open, but they could be off doing something away from the keyboard, or they could even be on a different tab. you input your move, and the other person doesn't do anything for a few minutes.

proryan (65)

@GeumjuKim I guess, but this project was mainly for educationally purposes.

DSAEvan (17)

Is this thing live or what

proryan (65)

@DSAEvan It is live but you have to find someone to play...

RahulChoubey1 (124)

Your use of ANSI is inconsistent.

FloCal35 (350)

It says I won but I tied twice and lost once

Good game POG

proryan (65)

@FloCal35 Did it say you won 0/3?

FloCal35 (350)

Oops, yeah @proryan. I thought it said You won[,!.;etc] 0/3

Brendan23 (56)

you should make an ai opponent

proryan (65)

@Brendan23 I guess... but like that defeats the point...

proryan (65)

@Brendan23 By the way does anyone want to play...

Brendan23 (56)

@Brendan23 (no offense)you don't have enough people playing it you have to wait about 30 min. or more to find a match.

proryan (65)

@Brendan23 Thats why I said you should call a friend...

Brendan23 (56)

@proryan ohhhhhhhhhhhhhhhhhhhhhh ok lol I didn't even see that.