Problem 3-1: Fifteen (part 1)

The Game of Fifteen is played on a 2D game board, where the numbered tiles slide. The goal is to start with a board configured like the board on the left, and rearrange the tiles until the numbers start at one through fifteen, as they are in the game board on the right.

pueJ49PfSozhgABAgQIECBAgAABAjMQmDQAxVKEoBkciCUJECBAgAABAgQIEKhXQAiq92xURoAAAQIECBAgQIDADASEoBmgWpIAAQIECBAgQIAAgXoFhKB6z0ZlBAgQIECAAAECBAjMQEAImgGqJQkQIECAAAECBAgQqFdACKr3bFRGgAABAgQIECBAgMAMBISgGaBakgABAgQIECBAgACBegWEoHrPRmUECBAgQIAAAQIECMxAQAiaAao.png                          wbTaksGk8AAAAAAASUVORK5CYII=.png

In this problem set, you will be downloading distribution code (you will not have to start from scratch!) In Part 1, you will first read through the code, figure out what it is doing and fill in the 11 missing comments. You will then complete two functions, init and draw.

Enjoy!

http://cdn.cs50.net/ap/1516/problems/3/1/3-1.html

Advertisements