-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (22 loc) · 802 Bytes
/
index.js
File metadata and controls
28 lines (22 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
'use strict';
var five = require("johnny-five");
var Tessel = require("tessel-io");
var Pieman = require('./pieman-app/Game');
var Store = require('./pieman-app/store');
/**
* On board ready it runs the game code located in 'pieman-app'
* It's running a memory game called "Pieman", which is Simon without the sound
*/
var board = new five.Board({
io: new Tessel()
});
board.on("ready", function() {
var app = new Pieman();
// Passing Store into repl is helpful for troubleshooting what is getting into redux
// Your bestfriend for writing software for hardware is writing tests.
// You can see if your code is working without ever uploading to the board.
// See the test folder for how to test an app using johnny-five :)
this.repl.inject({
store: Store.getState()
});
});