Conversation
Notices
-
cyberpunklord420 (ehhh@varishangout.net)'s status on Saturday, 16-Sep-2023 15:05:13 JST cyberpunklord420 @hazlin what's wrong with ::-1? -
Phantom Palladium (hazlin@amala.schwartzwelt.xyz)'s status on Saturday, 16-Sep-2023 15:05:13 JST Phantom Palladium @ehhh Nothing, I just, don't understand what is happening with it. If I had to guess, it means to reverse.
This is just an instance where I'd prefer to write more code for clarity. -
cyberpunklord420 (ehhh@varishangout.net)'s status on Saturday, 16-Sep-2023 15:05:14 JST cyberpunklord420 @hazlin I haven’t updated this in a while but I am ackshually learning python now. My husband is giving me a lot of private tutoring rather than me going online and doing activities. 😅 anyways here’s one of my first ones: a python script to tell you if a given word is a palindrome!
he wrote this afer many of my failed attempts. Even if I understand the general road of how to achieve my goal, remembering the grammar and syntax is still hard right now. I wrote retarded shit like if a[::-1] = true or if a == a[::-1]: but anyways this seems to be the way to do it and I have to just remember how it works!
-
Phantom Palladium (hazlin@amala.schwartzwelt.xyz)'s status on Saturday, 16-Sep-2023 15:05:14 JST Phantom Palladium @ehhh Glad to see you are still at it!
That python sort hand is scary lol. So I've written out the check as a loop xD -
cyberpunklord420 (ehhh@varishangout.net)'s status on Saturday, 16-Sep-2023 15:05:15 JST cyberpunklord420 @hazlin For some reason this project wasn’t as confusing for me and I got it done in a relatively shorter amount of time, I guess it’s becauese things are not moving all across the screen? Anyways, this is a simple memory-matching game. Test the original game for yourself here. For my version, I’ve added a hover animation (where your mouse moves to, a tile will change color) and a restart button.
Note to self: To change a cosmetic or to create visual objects, put it in the draw = function()
By the way, my restart button basically does the same thing as the restart button outside of the game box. I added it because if you think about it, a real game would need one inside of it. While setting them back to tile.isFaceUp to false is easy, it’s not a true reset because the actual cards don’t change. So it’s kind of cheating!
So for that, we’d need to make it truly reset for a fair start-over. We’ve come over some weird bugs trying to implement that, like the program would crash and the tiles would move out of their line. But eventually that was fixed by using the same code from the randomizer portion. Basically, a reset is when all the cards turn face down again and is randomized, that’s how it’s done here.
-