Skip to content

Instantly share code, notes, and snippets.

@Taluu
Last active August 29, 2015 14:22
Show Gist options
  • Save Taluu/7e8af5dd1561afa9c11c to your computer and use it in GitHub Desktop.
Save Taluu/7e8af5dd1561afa9c11c to your computer and use it in GitHub Desktop.

Wording

We will develop an awesome game named Da Movie Quizz, which will will test the cinematographic culture of the player. The main purpose is very simple:

Each round, we suggest an actor and a movie poster. The player must say if the actor has performed in the movie or not.

At the first wrong answer, game over. As long as the player gives a right answer, the game continues.

Simple, basic and fun !

What we expect

You can work using Symfony2, Silex or any Symfony2 components to develop the game.

For the database, you can use the one that seems must suitable to you. Be careful, we love YAGNI.

Code your game in a git repository. We will be able to see your commits and make some code reviews.

We will mainly look at the backend side of your application. Do the strict minimum on the frontend side, do not loose your time on this part. We will look at the quality of your coding, the patterns you've used and the respect of the main principles of a solid, strong and perennial application.

Requirements

In your application, you will need a movie database. You can use The Movie Database API.

You can use the following key: 7ea5f490261a949e52930517e1b4657c (but use it just for the exercice and please don't share it). You can also create one, it is very easy to do so !

If you want use another movie database, no problem!

I think Guzzle could be a good choice for curl, but you can use another library.

The game (/play)

First

The game is stopped. There is only a Play button. When the player press it, the game starts (obviously).

In game

  • Display the player's right answers
  • Randomly show an actor and a movie poster
  • The player must says if the actor performs in the movie or not. Simple Yes or No button should be enough.
  • If the answer is right, the game continues.
  • If the answer is wrong, the game stops.

Hint 1: to improve the game, use popular movies

Hint 2: All answers should not be "No". Try to add some "Yes" answers for a fun game

Game Over

  • We display the total Time and the number of accumulated right answers.
  • If the score is a highscore (show the part below), the player can enter his name.
  • A Play again button should launch a new fresh game.

Highscores (/highscores)

The top 10 games are listed here. Ordered by the total right answers. For each line, we display the score, the total time and the player's name.

Bonus

These are just some ideas if you want to improve the game. There are not required.

  • In the game, display the player's hight score and add a notification when he hits it.
  • Reset the highscores
  • Find some other ways to play like a Survival mode where you should give the maximum right answers in a given time.

Any questions ?

You can ask me your questions with the email => [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment