@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.
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 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.
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.
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
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.
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
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)
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 ☺️
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 :)
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!
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.
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 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.
💻Here is my github repo: github.com/carmensantos/rock-paper-scissors
💙Checkout the Free VS Code extension EchoAPI: www.echoapi.com/
this video feels like a breeze into my day of looking the task I have to to during the week for work and crying
Lol haha good luck, friend! :) and thank you!
Besides free code camp and programming hub . You are the best programmer yet
haha thank you, what an honor ;)
@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.
@@davidalex684 🤣 keep it going!
I really like these kinds of coding videos and hearing you talk out the issue and how you are going to approach it.
Just downloaded it, a very nice extension. Thanks a lot!
It’s awesome, right? 🥳
I love that you are using Monokai theme ❤
It’s sooo nice!
Great video I have never really seen people code rock paper scissors as a game
haha thank you :) it's a fun one!
Wow! The tool looks great! Let me download it and see if it works for my developing projects.
Have fun! :)
Yes, I enjoyed the video 🙂. I like your coding videos a lot. 🙏👍
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.
Exactly! Twins lol! It's scary how quickly we forget nuances of each language when we stop using them frequently
@@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.
procedural version: println(random.choice(["rock","paper","scissors"] )
coding is beautiful 🙂
Never knew you could make this game in a programming language
Haha yes, it’s a strange one but I guess we can create any game with code ☺️
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.
You're a gorgeous programmer 🥰
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
I wish you best of luck
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.
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
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.
Nice, just install the extension
Nice ☺️👌
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)
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 ☺️
It's nice the idea to build a lot of classes
👌♥️
An angel!!!!
hahaha thank you!!
Wow, great sharing
Thank you so much 🙂
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 :)
2:28 to switch java and python languages is my daily problem: this or self ?
hahah
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!
Hi from Turkey.
Nice video.
Could you please create contents about Django?
Thanks very much
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.
DRINKING GAME:
Eveery time csjackie writes java code, drink.
Hold my beer 🍺
Awesome video✅💯 keep up the good work , your VSCode looks awesome btw, can you tell how to make it looks like that
thank you so much!
@@CSJackie
thanks ,and can you tell the theme ehich used to highlighting
What is the keyboard you are using ? it sounds beautiful ! Excellent video !
Thank you so much! It's the Keychron Q2 Pro
why does your jacket keep falling off? is it a github feature?
Yes, you should submit a bug report 😭
have you switched from java to python? or opposite
Python (for 0.5 years) -> Java (3 years now) and now trying to solve these in Python haha
@@CSJackie great 👍
Nice 👍 Hope you are doing well 🙏
Thank you ☺️
So, you and I. Now and here.. (0:01-től)
Remove shoes near the books; respect books.
It’s a prize 😊
what keyboard is that? sounds nice!
It's the keychron Q2 Pro :) my favorite mechanical keyboard!
is there a point to even learning code anymore since ai can do it for us?
Mam do you earn more than 120k pound sterlings a year in uk now? Please reply in yes or no. Thanks a lot.
Good luck with that 😂
Comment va Yuval Harari?
Are you portuguese by any chance?
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 :)
thank you :) yes, it's helpful! Maybe I can incorporate AI in future coding videos
wow, must have atry
Many great programmers dislike OOP btw. It's common for people to struggle to think in OOP :)
I am one of them 😂👌
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]
Hahah this is neat if it works, I'll try it! I'm not very familiar with Python anymore
@@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.