I was trying to teach myself how some things worked and I finally figured it out! I created this simple RPS game while doing so. I plan on releasing an updated version in the future with one or two extra games in there, like maybe craps, and such.
What RPS does:
Keeps track of the player choices, and wins and losses.
If the player favors a specific choice, the computer will begin to notice this and choose more often the choice that will win over it.
What I would like is for you all to look over it and help me learn ways to shorten the code / make it better.
The biggest roadblock I had to overcome was the "divide by 0" error. I wanted to create a rate where the probability the opponent would choose something would increase, but since everything starts off at 0, the game wouldn't let me. I didn't feel like writing a bunch of "IF" statements to get around this pitfall.
I also wondered if there was a way to create a visible command. It would be similar to a Verb, but would be visible at all times as an option you could click and it would just execute the command without having to type it in.
Thanks guys,
Kitsune