Friday, March 17, 2017

March 17 2017 - What Are We Doing In Class Today?

Entrance Ticket - HOW TO WRITE AN INSTRUCTABLE
https://www.instructables.com/class/How-to-Write-an-Instructable-Class/

  1. Read and take notes on Lesson 1 and 2 and turn these notes into Jupiter
  2. Review Lesson 3 and 4... though, we are not planning to publish yet
Turn in to Jupiter

Class Agenda:
  • 12:30-1:00 - Entry Ticket -30 min Entry & working on catching up on MISSING Jupiter assignments


HUB at 1:45 - 2:00 15 min

After HUB from 2:00-3:30

2:00-3:30 - Open Maker Day Projects - You can work on the following:

  • Building Robots
  • Hardware like the Server Rack
  • Play with Your Raspberry PI
  • Python Code with Get your Raspberry Pi books.
    • Lets break down the flow....Slides
    • I want you to get the dice program on page 34 working.  You should actually have this code in the downloaded files on your desktop... if not see page 44 of the RaspberryPI introduction slides.  
    • Now add the rules for Craps
      • Each round has two phases: Come Out and Point. To start a round, the shooter makes one or more Come Out rolls. A Come Out roll of 2, 3 or 12 (called Craps, the shooter is said to 'crap out') ends the round with players losing their Pass Line bets. A Come Out roll of 7 or 11 (a Natural) results in a win for Pass Line bets.
        • change your code to roll, and then check for a result of 2,3,12.  If that is rolled then print "You rolled a ", roll value and then print "CRAPS"
        • else if the roll is a 7 or 11, then that is a win.  in this case print "You rolled a ", roll value  and then print "WIN - Natural"
        • Then have them roll again
      • The shooter continues to make Come Out rolls until he rolls 4, 5, 6, 8, 9, or 10,
        which number becomes the Point. The dealer then moves an On button to the point number signifying the second phase of the round. If the shooter rolls the point number, the result is a win for bets on the Pass Line. If the shooter rolls a seven (a Seven-out), the pass line loses and the round ends.  
        • now add the point rolls.  In the IF where you have rolled a 7 or 11, then you need to keep track and rolling 4, 5, 6, 8, 9, or 10.  If you roll these values after first rolling a 7 or 11, then print "You rolled a ",roll value and then "which is now the point value"
        • If they roll the same point value before they roll a 7, then they "win" 
        • If at any point they roll a 7 then every one loses and you start over
    • When you have this working... Show me, and turn in to Jupiter
    • Then keep looking at examples in the book
    •  

No comments:

Post a Comment