/umich-635

Lecture Code for UMich Class 635 - Week 5 - Guest Lecture (PHP arrays + functions + pokemon)

Primary LanguagePHP

UMich Class 635 - Week 5 - Guest Lecture

Intro to PHP with Pokemon

Covering Functions and Arrays with Pokemon examples.

Slide Deck: http://bit.ly/635-w5

The Coding Challenge

Functions to write:

  1. randomly select a pokemon
  2. provide the strength of the pokemon
  3. provide the battle results

Files

  • testing.php - our playground file for testing things during class (includes some code from the slides you can play around with)

  • class.php - the three function coding challenge to review the lesson material

  • answers.php - a version of a solution to the coding challenge

  • .floo* - files for running https://floobits.com for code collaboration with students