Battleship

I created the game of battleship by forming a while loop which ran turns of the game, with user and computer guesses, until a grid lacked either battleship. To do so, I created boolean variables, and tested their values every iteration of a loop. Once these variables became false, I terminated and printed a winner.

Rock, Paper, Scissors

Game of rock paper scissors; I used a random number generator to create random choices for the computer, I then turned these numbers to Strings once they had been picked. This allowed for me to randomly select "rock" "paper" or "scissors" for the computer, and then use those Strings to test if the player or computer won the round.

1