Search This Blog

Showing posts with label Larry. Show all posts
Showing posts with label Larry. Show all posts

Monday, February 7, 2011

RPS Project

I have been assigned the task of coding the RPS (Rock/Paper/Scissors) game.  As Cam stated, it ties some of the most important elements, logics and concepts of programming together. 

I am brand new at the semantics and pragmatics of Java, JSP (Java Server Page) and OOP (Object Oriented Programming), but my past experience is turning out to be a real shining star.  Many of the the concepts are the same and the if and for syntax statements are exactly the same.  I already understand variable declaration, nesting, loops and passing data.

Trying to type out as much code as possible without blasting out to Google and cutting and pasting existing code.  I am finding the whole bracketing concept quite easy to logically segregate different functions, BUT THEY ARE EVERYWHERE in the code!!!  My most prevalent compiling error so far has been parsing errors.

So, as of right now, with the help of Cam supplying concepts and syntax where needed, the first copy of a standalone version of RPS is completed, along with a loop of 3 times and a counter.  I am about to tear up the code and try and loop for a greater number of runs, randomize the user input (player 1 = server, player 2 = user) to allow for non-user input and begin keeping track of the number of wins, the number of losses and the number of ties.