# The IMDb Game 2

**A proof of concept to make the IMDb website become a puzzle game**

The main difference between 1 and 2 is their implementation, the first one was written in Python, and the second one was written in JavaScript.

## Run the game from the source code

To run this game from the source, you will need to have [npm](https://www.npmjs.com/) installed on your computer. If you are using [Fedora](https://getfedora.org/), you can simply use DNF to install npm:

```bash
sudo dnf install npm
```
After that, do the following procedure to run the game:

```bash
# Go to the extracted directory
cd imdb_game_2
# Install the dependencies
npm install
# Run the app
npm start
```

## To build a standalone package for the specific platform
You can use [electron-packager](https://github.com/electron-userland/electron-packager):

```bash
sudo npm install -g electron-packager 
```

For example, to build a standalone package for Windows 32-bit:

```bash
electron-packager imdb_game_2 imdb_game_2 --platform=win32 --arch=ia32 --overwrite
```

Note: You need to have [Wine](https://www.winehq.org/) installed if you are trying to build the Windows-specific package on Linux.

## ChangeLog

20170611:
  - Add a basic "Find" box in the browser window (Use Ctrl+F to call it).
  - If the player uses the illegal method and have found the correct title. The message "Congratulations" will not show up anymore.

20170327:
  - The main browser window is no longer blocking the links in the mediaviewer.

20170325:
  - When trying to see the larger poster, now use the built-in mediaviewer from IMDb, instead of the direct URL to the image file.

20170323:
  - Remove one redundant code.

20170318:
  - First release.

#### Author: DarkRanger (https://darkranger.no-ip.org)
#### License: GPL-3.0
