CODE WITH ME | Rock Paper Scissors Game in Python EASY *Beginner Friendly*

  Рет қаралды 25,602

CS Jackie

CS Jackie

Күн бұрын

Пікірлер: 86
@CSJackie
@CSJackie 16 күн бұрын
💻Here is my github repo: github.com/carmensantos/rock-paper-scissors 💙Checkout the Free VS Code extension EchoAPI: www.echoapi.com/
@whipshaw
@whipshaw 16 күн бұрын
this video feels like a breeze into my day of looking the task I have to to during the week for work and crying
@CSJackie
@CSJackie 16 күн бұрын
Lol haha good luck, friend! :) and thank you!
@mbkongalor
@mbkongalor 11 күн бұрын
I really like these kinds of coding videos and hearing you talk out the issue and how you are going to approach it.
@davidalex684
@davidalex684 16 күн бұрын
Besides free code camp and programming hub . You are the best programmer yet
@CSJackie
@CSJackie 16 күн бұрын
haha thank you, what an honor ;)
@davidalex684
@davidalex684 16 күн бұрын
@CSJackie You Programming so much that even your reply is initialized with a double quotation mark, which is stored with a semi column and a round bracket stored as a variable.
@CSJackie
@CSJackie 16 күн бұрын
@@davidalex684 🤣 keep it going!
@user-lilithc
@user-lilithc 15 күн бұрын
Just downloaded it, a very nice extension. Thanks a lot!
@CSJackie
@CSJackie 15 күн бұрын
It’s awesome, right? 🥳
@xhenryx14
@xhenryx14 15 күн бұрын
I love that you are using Monokai theme ❤
@CSJackie
@CSJackie 15 күн бұрын
It’s sooo nice!
@Jibril_Abdulkadir
@Jibril_Abdulkadir 16 күн бұрын
Great video I have never really seen people code rock paper scissors as a game
@CSJackie
@CSJackie 16 күн бұрын
haha thank you :) it's a fun one!
@thejogman
@thejogman 16 күн бұрын
Can't understate the extent to which I can relate to the struggle of constantly slipping into Java syntax. I originally started with Lua and have dabbled in a variety of different languages over the years, but ever since I got into Java, it's the only one that truly feels like home to me, lol.
@CSJackie
@CSJackie 16 күн бұрын
Exactly! Twins lol! It's scary how quickly we forget nuances of each language when we stop using them frequently
@thejogman
@thejogman 15 күн бұрын
@@CSJackie Yea, I used to love working in Lua (quite fitting that my primary framework was LÖVE2D for the longest time) and I still consider it to be one of my favorite languages, but these days whenever I try to touch it I immediately feel like I would rather be using Java. Strict typing is the main thing I miss when I use Lua, and the few times I've dabbled with C++ and C# I have missed the way enums work in Java.
@magg.wjiang9136
@magg.wjiang9136 15 күн бұрын
Wow! The tool looks great! Let me download it and see if it works for my developing projects.
@CSJackie
@CSJackie 15 күн бұрын
Have fun! :)
@GeertEvens
@GeertEvens 12 күн бұрын
Yes, I enjoyed the video 🙂. I like your coding videos a lot. 🙏👍
@FC-BS
@FC-BS 15 күн бұрын
Never knew you could make this game in a programming language
@CSJackie
@CSJackie 14 күн бұрын
Haha yes, it’s a strange one but I guess we can create any game with code ☺️
@wasab1tch
@wasab1tch 8 күн бұрын
any game you could play on any computer was made using a programming language lol. You could port these to any language as long as you know the algorithm of it.
@kms5818
@kms5818 15 күн бұрын
I'm a fan of yours, but I have a suggestion. Why not try using a microphone for your recordings? It will improve the video quality a lot.
@dirtydevotee
@dirtydevotee 11 күн бұрын
Very nice. However... - "adjust_score" can be simplified greatly. Create a temp variable called "temp_winner = human" so that you assume the winner is the human. Set "temp_winner" to "tie" if "choice_computer == choice_player". Then use a "match choice_player:" to award the game to the computer if "case 'ROCK': if choice_computer == 'paper': temp_winner = computer". You'll only need three of those. This would clean that whole section up tremendously. Return "temp_winner". - You should separate the "evaluate_choices" into their own function and leave "adjust_score" to handle just the changing of numbers and the "print("The score is now...")". - You don't need a "max_round", you need a "max_score". Otherwise, the ties require lots of extra coding. But if "declare_winner()" is triggered when "score_user" or "score_computer" has a value of "3", that is significantly less code. - That while loop in "play()" makes me super nervous. You should have a flag you can throw on error. So it's "while flag_isRunning == True:" Then you create an error handler that switches "flag_isRunning" to "False" whenever an error is thrown. Also, an exit game button can throw the same.
@rfyorfyo5022
@rfyorfyo5022 11 күн бұрын
i also writed a code for this game but its not fair cause i inspired from you, it took me 1 hour, i think it would have take longer, next time i watch other code at the end
@JessAnalysisTV
@JessAnalysisTV 16 күн бұрын
You're a gorgeous programmer 🥰
@MohammedCyber-r1d
@MohammedCyber-r1d 16 күн бұрын
Woow This is amazing scary I need to learn how to code as self taught I'm thinking what am i getting my self into But i' m not gonna give up no matter how many months or years it takes or centery i'm gonna make it And Thanks for yours inspiration
@CSJackie
@CSJackie 16 күн бұрын
I wish you best of luck
@vxsniffer
@vxsniffer 7 күн бұрын
coding is beautiful 🙂
@firehandszarb
@firehandszarb 8 күн бұрын
procedural version: println(random.choice(["rock","paper","scissors"] )
@thieuson
@thieuson 14 күн бұрын
Nice, just install the extension
@CSJackie
@CSJackie 14 күн бұрын
Nice ☺️👌
@vickydi
@vickydi 15 күн бұрын
Wow, great sharing
@CSJackie
@CSJackie 15 күн бұрын
Thank you so much 🙂
@OzzIRIS
@OzzIRIS 15 күн бұрын
Hi Carmen!!. Im doing by first steps in Python.. even tough your videos are way up over my head, I found them pretty interesting and educational. What was the error you get on your first try??.. Stmg about "import" you said?. (English isn't my 1st language)
@CSJackie
@CSJackie 15 күн бұрын
Thank you so much, it will definitely get easier with practice and time, and you’ll be able to do them in the future! ☺️♥️ It was an Import error, we have to import the module into the code ☺️
@alexsnowblind
@alexsnowblind 14 күн бұрын
It's nice the idea to build a lot of classes
@CSJackie
@CSJackie 14 күн бұрын
👌♥️
@AnimeLover-su7jh
@AnimeLover-su7jh 12 күн бұрын
If I am not mistaken, calling random like this will produce the same result, every time you start the game, usually people seed the random with the current time.
@benskev
@benskev 16 күн бұрын
DRINKING GAME: Eveery time csjackie writes java code, drink.
@CSJackie
@CSJackie 16 күн бұрын
Hold my beer 🍺
@valdigleis
@valdigleis 16 күн бұрын
An angel!!!!
@CSJackie
@CSJackie 16 күн бұрын
hahaha thank you!!
@claudiafischering901
@claudiafischering901 15 күн бұрын
I think a single class for computer and player is better. Both have same properties and methods. So the choose method have a single if statement to switch the input method of computer or player. Your player class has no score declared. But for a first try ;-) not bad. I would avoid the player write the whole word. Replace with numbers is better, otherwise why you chose enum that represent numbers. Userinput is much easier with numbers as with string!
@AlbertoNao
@AlbertoNao 13 күн бұрын
2:28 to switch java and python languages is my daily problem: this or self ?
@CSJackie
@CSJackie 12 күн бұрын
hahah
@mecrayavcin
@mecrayavcin 15 күн бұрын
Hi from Turkey. Nice video. Could you please create contents about Django? Thanks very much
@DanFrederiksen
@DanFrederiksen 16 күн бұрын
you could have tree buttons to push instead of command prompt interface. I assume python has easy gui? also you could try having AI code the same and see how similar they are :)
@DAVIDDANIELGUTIERREZCALDERON
@DAVIDDANIELGUTIERREZCALDERON 16 күн бұрын
What is the keyboard you are using ? it sounds beautiful ! Excellent video !
@CSJackie
@CSJackie 15 күн бұрын
Thank you so much! It's the Keychron Q2 Pro
@tom-k9u5j
@tom-k9u5j 16 күн бұрын
Awesome video✅💯 keep up the good work , your VSCode looks awesome btw, can you tell how to make it looks like that
@CSJackie
@CSJackie 16 күн бұрын
thank you so much!
@tom-k9u5j
@tom-k9u5j 15 күн бұрын
​@@CSJackie thanks ,and can you tell the theme ehich used to highlighting
@wrestlingshorts
@wrestlingshorts 10 күн бұрын
have you switched from java to python? or opposite
@CSJackie
@CSJackie 9 күн бұрын
Python (for 0.5 years) -> Java (3 years now) and now trying to solve these in Python haha
@wrestlingshorts
@wrestlingshorts 9 күн бұрын
@@CSJackie great 👍
@Kushal-v8b
@Kushal-v8b 16 күн бұрын
Nice 👍 Hope you are doing well 🙏
@CSJackie
@CSJackie 16 күн бұрын
Thank you ☺️
@idegennyelvitanfolyamok
@idegennyelvitanfolyamok 13 күн бұрын
So, you and I. Now and here.. (0:01-től)
@benskev
@benskev 16 күн бұрын
why does your jacket keep falling off? is it a github feature?
@CSJackie
@CSJackie 16 күн бұрын
Yes, you should submit a bug report 😭
@AnuragMishra-ws4zc
@AnuragMishra-ws4zc 13 күн бұрын
Remove shoes near the books; respect books.
@CSJackie
@CSJackie 12 күн бұрын
It’s a prize 😊
@mrx6555
@mrx6555 15 күн бұрын
what keyboard is that? sounds nice!
@CSJackie
@CSJackie 15 күн бұрын
It's the keychron Q2 Pro :) my favorite mechanical keyboard!
@gh-sb1dy
@gh-sb1dy 9 күн бұрын
is there a point to even learning code anymore since ai can do it for us?
@TheedxA2
@TheedxA2 16 күн бұрын
Make lives (or videos) resolving challenges of Advent of Code 2024
@CSJackie
@CSJackie 16 күн бұрын
I am actually deciding whether I have time to do this right now :) it's a great idea!
@TheedxA2
@TheedxA2 16 күн бұрын
@@CSJackie Faz sentido, tempo é dinheiro.
@shibdassarkar9357
@shibdassarkar9357 16 күн бұрын
Mam do you earn more than 120k pound sterlings a year in uk now? Please reply in yes or no. Thanks a lot.
@browsefly
@browsefly 14 күн бұрын
Good luck with that 😂
@karljohnson1121
@karljohnson1121 11 күн бұрын
Comment va Yuval Harari?
@pedroloureiro2232
@pedroloureiro2232 6 күн бұрын
Are you portuguese by any chance?
@projectbuubl5352
@projectbuubl5352 16 күн бұрын
Well done ;) Have you ever thought of using an AI-assistent as a support for your project? You will be able to develop more complex projects in less time :)
@CSJackie
@CSJackie 16 күн бұрын
thank you :) yes, it's helpful! Maybe I can incorporate AI in future coding videos
@miroklose5620
@miroklose5620 15 күн бұрын
wow, must have atry
@ImPDK
@ImPDK 16 күн бұрын
Many great programmers dislike OOP btw. It's common for people to struggle to think in OOP :)
@CSJackie
@CSJackie 16 күн бұрын
I am one of them 😂👌
@jordanhenshaw
@jordanhenshaw 16 күн бұрын
Delete the if logic and replace with dictionary? def is_user_winner(self): losers = { “rock”: “scissors”, “paper”: “rock”, “scissors”: “paper” } return self.computer == losers[self.user]
@CSJackie
@CSJackie 15 күн бұрын
Hahah this is neat if it works, I'll try it! I'm not very familiar with Python anymore
@jordanhenshaw
@jordanhenshaw 15 күн бұрын
​@@CSJackie I built my own version of this for fun just now, pasted this straight in from YT and it worked (.replace(curly_quotes, straight_quotes)), and I typed it on my phone! Took me 5 hours to write the rest of the game though because ADHD.
COMPLETE No-Nonsense VSCode Setup for Python Devs
26:05
ArjanCodes
Рет қаралды 45 М.
7 Design Patterns EVERY Developer Should Know
23:09
ForrestKnight
Рет қаралды 117 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 699 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 303 М.
This Video is AI Generated! SORA Review
16:41
Marques Brownlee
Рет қаралды 3,5 МЛН
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 898 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
First week as an Amazon Software Engineer 🎧 New Grad Diaries
12:09
CODE WITH ME | Python TETRIS Game OOP [PART 2]
25:04
CS Jackie
Рет қаралды 14 М.
AI is not designed for you
8:29
No Boilerplate
Рет қаралды 197 М.
I Created The Best AI Tool Ever
9:12
ThePrimeTime
Рет қаралды 108 М.
The Right Way To Build Async APIs in ASP.NET Core
20:12
Milan Jovanović
Рет қаралды 20 М.
Lecture 1: Introduction to CS and Programming Using Python
1:03:30
MIT OpenCourseWare
Рет қаралды 911 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН