cs193p – Assignment #1 Task #3

Please note, this blog entry is from a previous course. You might want to check out the current one.

Add a text label somewhere which desribes the results of the last flip. Examples: “Matched J♥ & J♠ for 4 points” or “6♦ and J♣ don’t match! 2 point penalty!” and simply “Flipped up 8♦” if there is no match or mismatch.

The information needed to display is already inside the model. Analogue to the score create a new property to hold the text string, and set it in flipCardAtIndex:
Continue reading “cs193p – Assignment #1 Task #3”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Assignment #1 Task #2

Please note, this blog entry is from a previous course. You might want to check out the current one.

Add 4 cards to the game (for a total of 16).

Start by selecting one row of cards, copy and place them on your storyboard:

cs193p - assignment #1 task #2
cs193p – assignment #1 task #2

Now connect all four new cards to the outlet connection by control dragging each of them to:

@property (strong, nonatomic) IBOutletCollection(UIButton) NSArray *cardButtons;

The complete code is available on github.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Assignment #1 Task #1

Please note, this blog entry is from a previous course. You might want to check out the current one.

Follow the detailed instructions in the lecture slides (separate document) to reproduce the latest version of Matchismo we built in lecture (i.e. the one with multiple cards) and run it in the iPhone (normal, non-Retina, non-iPhone 5) Simulator. Do not proceed to the next steps unless your card matching game functions as expected and builds without warnings or errors.

… actually done during the lecture. The complete code is available on github.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Lecture #3 – Objective-C

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture #3 is a demo followed by a little review of what has been learned up to now.

The demo introduces outlet collections – arrays of collections which hold strong pointers to the objects in the view. It also shows how to implement a property which is read-only for the public interface and read-write for private use. … and adds new features to the card game.

The code for the lecture is available on github.

Slides are available on iTunes providing a detailed walk through of the demo.

The lecture is available at iTunes and is named “3. Objective-C (January 15, 2013)”.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Lecture #2 – Xcode 4

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture #2 provides a short walk through of the Xcode developing environment. The first half of the lecture discusses the various classes of the model for the playing card game. The second is a life demonstration on how to start a project in Xcodes, placing buttons and labels in Storyboard and connecting them to the view controller.

At the end of the lecture the app called Matchismo displays a playing card and allows to flip it to show both sides of the card.

Assignment #0 is to follow the steps from the demonstration, add the model classes from the first half of the lecture and finally allow to flip through all cards of a deck.

To implement this last step, add a new property to hold the model of the game – the card deck – to the view controller. Don’t forget to include the model class:
Continue reading “cs193p – Lecture #2 – Xcode 4”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Lecture #1 – iOS, MVC, Objective-C

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture #1 is an general introduction of the course with an overview about iOS, MVC and Object C.

Paul Hegarty stresses the importance of being familiar with object oriented programming as prerequisites for the course and that it is not for absolute beginners.
Continue reading “cs193p – Lecture #1 – iOS, MVC, Objective-C”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Season – Winter 2013

Please note, this blog entry is from a previous course. You might want to check out the current one.

Stanfords course cs193p has started its Winter session. The videos of the lectures are available at iTunes. Sample code and slides are (or should be) available directly at Stanford. Like last summer it is accompanied by peer collaboration on Piazza.

The course material from previous seasons is still available:

Summer 2012 / Fall 2011
videos downloads

Fall 2010
videos downloads

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail