Wednesday, March 15, 2017

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

Entrance Ticket - Please work on Late Jupiter
Turn in to Jupiter


Class Agenda:
  • Entry Ticket -30 min Entry and Jupiter
  • Python Code with Get your Raspberry Pi books.
    • 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
    •  
  • Hub?
  • Cyber Pirates - VM Ware Project (see this link for additional project instructions)
    • Get into your teams
    • Each team member will install a OS.  Pick, Windows (Win7 or  Win10), Ubuntu, and then any other OS image.  Floating around on USB sticks and drives are ISO images that have been downloaded for you. 

No comments:

Post a Comment