Classroom Attendance

This is a classroom attendance sheet that marks the attendance of 6 students. The only options are absent or present. You can see a person's status in the table.

Rock, Paper, Scissors Game

A Rock, Paper, Scissors game running on a website made with HTML, CSS, Javascript.

Attendance Sheet

I made a simple table, and if the student is marked, they are assumed present. If they are marked, it is added to absent tally.

OO RPS

Object oriented RPS implementation

Rock Paper Scissors

The computer randomly selects a number which corresponds to rock paper or scissors. Then the program compares all the possible combinations to determine who the winner is.

Rock Paper Scissors

This is a game of rock paper scissors with the CPU. The user is prompted to choose rock, paper, or scissor and then the CPU randomly selects one of the three. Afterwards the winner is outputted to the console. The main part of the code was the nested "if" statements to check for all the possible outcomes that could result between the user and the CPU.

var player1 = prompt("Choose Rock, Paper, or Scissors "); var x = Math.random(); if (x < 1/3){ x = "rock"; } else if(x <= 2/3) { x = "paper"; } else { x = "scissors"; } var result = function(a, b) { if(a === b) { return "It's a draw"; } if(a === "rock") { if(b === "scissors") { return "rock wins"; } else { return "paper wins"; } } if(a === "paper") { if(b === "rock") { return "paper wins"; } else { if(b === "scissors") { return "scissors wins"; } } if(a === "scissors") { if(b === "rock") { return "rock wins"; } else { if(b === "paper") { return "scissors wins"; } } } } }; console.log("Player1: " + player1); console.log("x: " + x); result(player1, x);

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.

Classroom Attendance Management App

This is my Classroom Attendance Management App coded using HTML, CSS, and JavaScript. The website is hardcoded for a classroom of 6 students.

Mad Libs

changed html and used functions for JS

Battleship Homework

This is a game of battleship; however, you do not have to care about protecting your battleship. You have 10 tries to hit the enemy battleship.

BattleShip

This is by battleship homework. You first get asked to select where you want to place your ship. This you and the CPU take turns guessing each others ships. I used a lot of functions to organize my code.

Mad Libs

This is the mad libs homework. Type in words (according to the parts of speech) and click "Go Mad" to see your words in the passage

1 2 3 ... 26