Today, I finished my Weekly Project. At least, I think it’s finished. I fully expect to see a notification that I need to go back and fix some thing or things. I know there are elements I could have spent more time on and got it pixel perfect. My personal attention-to-detail has been screaming, “ It doesn’t match the mock-up”. My need to have a work/life balance has told it to shut up.
One of the things we did to aid in our learning was to make a script that logged to console the outcome of a game of Rock, Paper, Scissors. It was super easy since the “computer” was a constant.
I took it to the next level and made it so that it would console the outcome if the “computer” or “me” changed their inputs. But that wasn’t enough for me. I wanted it randomly generate rock, paper, or scissors and the log it. Done, but I wanted to know what was being picked by each player. So, added that and BAM! Pretty sweet, I thought.
I ran the code over and over and over. That’s when I noticed that rock was not getting picked, ever. Oh NO! It’s not working right. I kept playing with and was not getting the result I wanted. Thankfully, I had a colleague help me out. He picked out where I went wrong with my code and now it works great.
I think that I might keep playing with it and build a full game from it. We’ll see if I have time for that…