Wecome to my Portfolio Page for Weeks 1 and 2. I have recently started a coding bootcamp provided by
The Growth Company. Here is
an example of my work, these were two of the Week 1 challenges. For the other weeks select from the Nav bar
above
This was the Dice Roller task:
Create a dice roller that will store the values of five dice rolls.
Make the program so it will store two sets of dice rolls. One set will be the dice scores for player
1, the
other will be the dice rolls for player 2.
Compare the totals of the two sets and output who got the highest total.
Here are the rules:
Players score 10 points for every six they roll
Players get 50 points if all five dice are the same
Players get an additional 50 points if all five dice show a 6
Players get no score at all if four or more dice are all showing 1
This is the code I used to create this game:
This is an example of output when run:
Next there was a tough challange, the Card Dealer
The Card Dealer:
Build the deck
Build a card
Stack the deck
Pick a card, any card! And then get a hand
Ensure that the same card can't be drawn twice
And here was my code for that:
Here is the result of the program:
The hand dealt by The Card Dealer is:
This website was created during Week 2 of the bootcamp and updated from that point on.
The HTML for this page and the javascript for the card dealer can be found on my GitHub Repository