Presentation is loading. Please wait.

Presentation is loading. Please wait.

Go over midterm. CSS catchup. Work session Homework: complete project

Similar presentations


Presentation on theme: "Go over midterm. CSS catchup. Work session Homework: complete project"— Presentation transcript:

1 Go over midterm. CSS catchup. Work session Homework: complete project
Programming games Go over midterm. CSS catchup. Work session Homework: complete project

2 Midterm Go over questions. Learn formal jargon! how to read code
Come to office hours to pick up midterm (and go over it!)

3 Cascading Style Sheets
HTML document has <style> element. Division JavaScript (in script element(s)) for behavior Interaction HTML (in body element) for content Including structure CSS (in style element(s) AND also in html elements) for formatting Can be external style references. Styling cascades: earlier styles overridden by those closest to the text.

4 Basics CSS is its own language Format is identifier {specification}
CSS identifiers can be types, classes, ids Example body {font-family: "Book Antiqua", Arial, sans-serif; } Note: fonts are located on the client computer, so font-family allows us to "hedge".

5 Sources http://www.w3schools.com/css/
Look at source of webpages

6 Busman's Holiday: Add to 15
2 person game Implement smart move by computer How smart? Improvements Provide range of computer skill Add smarter move? Add option for computer to go first ?

7 Notes Implemented first in Processing and then changed program.
Sometimes not the best strategy Note the use of CSS Note use of dynamically created elements

8 Examples http://faculty.purchase.edu/jeanine.meyer/html5projects.html
Added video to collage Request from Aviva:

9 minesweeper CAN BE IMPROVED! Improve 'look and feel'
change the three moves think about protecting player from a false move improve graphics ?

10 General requirements moves Tasks for program, according to the move:
there is a dblclick event, but I read that it wasn't implemented in certain browsers Tasks for program, according to the move: determine if there is a mine. if so, end the game if not, calculate count of surrounding mines mark as a mine. Don't check. complete revealing counts

11 Recursive calls The showsurrounds function contains calls to the showsurrounds function! This is called a recursive call. I needed to ensure that it will not produce an infinite loop. mark each cell when it has the call there are only a finite number of cells.

12 Explore origami fold Dollar bill rosette uses a property of 11 Requires number to be prime. The numbers for which this works is a class of primes called full reptend primes base 2

13 Classwork/homework Work on your projects. Prepare to show next class.


Download ppt "Go over midterm. CSS catchup. Work session Homework: complete project"

Similar presentations


Ads by Google