If you wish to skip the installation process and play the game:
The game is now deployed with heroku at https://black-white-tiles.herokuapp.com/
You are given two boards, one target board and one game board, the game board will be initally all white blocks, you can click the blocks on the game board but NOT on the target board
when you click on a block, the block itself and ALL adjacent blocks(top,left,bottom,right) will revert its color(WHITE -> BLACK or BLACK -> WHITE)
Your goal is to use the lowest amount of clicks to get the game board pattern to exactly match the target board pattern
In blind mode, you have to memorize the target board pattern before starting the game, once you click the start game button, the target board pattern will be hidden
To make blind mode still playable, you have the option to show the target board pattern again. However, you cannot click on the game board when the target board pattern is shown, you must click hide again to resume the clicking.
To challange yourself, try to use the show and hide options as few as possible
Have fun!
The installation guide is for people who want to deploy the game locally or using docker
1. Install Docker
2. Make sure Docker Desktop is running, you can check with:
3. Just pull the image and create a docker container by running the following command:
The -p 3000:3000
does a port forwarding from the container to your host, which now you can goto http://localhost:3000 in your browser to play the game
1. Install Docker
2. Make sure Docker Desktop is running, you can check with:
3. clone the repository, you can either directly download the .zip version on gitlab or by running:
Note: you must have git installed to use git clone
4. change to the project directory:
5. run the following to build the docker image:
6. run the following to start the docker container:
The -p 3000:3000
does a port forwarding from the container to your host, which now you can goto http://localhost:3000 in your browser to play the game
Remove container:
Remove image:
Remove build cache:
1. Install NodeJS if you don't have it, recommended version is v12.18.1, you can check your NodeJS version by running:
You can install at https://nodejs.org/en/download/ if you don't have NodeJS installed already.
2. clone the repository, you can either directly download the .zip version on gitlab or by running:
Note: you must have git installed to use git clone
3. change to the project directory:
4. run the following to install the required node modules:
5. run the following to play the game:
A browser should automatically open with the game launch, or you can open it maually by typing http://localhost:3000 in your browser
The start menu background image is found from: http://www.seekgif.com/free-image/black-and-white-wallpaper-best-hd-wallpaper-5750.html