Skip to content

Commit ebbcafe

Browse files
Added readme
1 parent d8e2c65 commit ebbcafe

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
# BBCInventathonNode
1+
# Fruit punch :punch:!
2+
### Contributors
3+
* Lead Developer: `Jay Williams`
4+
* Junior Developers: `Nikash Chekuri` ![MugShot](https://snusercontent.global.ssl.fastly.net/member-profile-full/44/4288444_8862847.jpg) , `Gokul Menon`
5+
* Tester: `Shaquille`
6+
* Alternative Developer: `Rory Sharp` (Solution in Python)[https://github.com/codingJWilliams/BBCInventathon]
7+
### What is this?
8+
This is a program designed to train your brain.
9+
An image appears of a crate of a certain type of fruit, for example limes, and you have to look for the camouflaged word and hit that fruit.
10+
!(Demo)[https://jaywilliams.me/static/screencapture-localhost-4000-1502989254235.png]
11+
### How do I set it up?
12+
First, set up a (Makey Makey)[makeymakey.com] device and (remap)[http://makeymakey.com/remap] the arrow keys to 1, 2, 3, and 4. Then, clone this repo to a folder and navigate there in a command prompt.
13+
Type `npm install` into the prompt and wait for all of the dependencies to install. Then open `html/game.html` with your favorite text editor and look for the section that begins
14+
```javascript
15+
var fruits = [
16+
{
17+
name: "Lemon",
18+
pics: ["url('lemon1.jpg')", "url('lemon2.jpg')", "url('lemon3.jpg')", "url('lemon4.jpg')"],
19+
key: "Digit2"
20+
},
21+
```.
22+
Connect a wire from each arrow key to a fruit and then connect yourself to the ground. Open word or any text input and test which key each fruit is connected to. Then, where it says `key: "Digit2"` and replace it with the correct digit for each fruit you have connected.
23+
Then, in your command line window, type "node index" and open "localhost:4000" with your favorite browser

0 commit comments

Comments
 (0)