This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @author Richard Davey <[email protected]> | |
| * @copyright 2016 Photon Storm Ltd. | |
| * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} | |
| * | |
| * @overview | |
| * | |
| * Phaser - http://phaser.io | |
| * | |
| * v2.6.2 "Kore Springs" - Built: Fri Aug 26 2016 01:02:57 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Vacation World</title> | |
| <style> | |
| p { | |
| font-family: Arial; | |
| } | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const menu = { | |
| _courses : { | |
| _appetizers : [], | |
| _mains : [], | |
| _desserts : [], | |
| },//closes _courses object | |
| get appetizers(){return this._appetizers}, | |
| get mains(){return this._mains}, | |
| get desserts(){return this._desserts}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const menu = { | |
| _courses : { | |
| _appetizers : [], | |
| _mains : [], | |
| _desserts : [], | |
| },//closes _courses object | |
| get appetizers(){return this._appetizers}, | |
| get mains(){return this._mains}, | |
| get desserts(){return this._desserts}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'); | |
| const app = express(); | |
| app.use(express.static('public')); | |
| const PORT = process.env.PORT || 4001; | |
| const jellybeanBag = { | |
| mystery: { | |
| number: 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const generatePlayerBoard = (numberOfRows, numberOfColumns) => { | |
| let board = [] | |
| for (let i=0; i< numberOfRows; i++) { | |
| let row = [] | |
| for (let j = 0; j < numberOfColumns; j++) { | |
| row.push(' ') | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const generatePlayerBoard = (numberOfRows, numberOfColumns) => { | |
| let board = [] | |
| for (let i=0; i< numberOfRows; i++) { | |
| let row = [] | |
| for (let j = 0; j < numberOfColumns; j++) { | |
| row.push(' ') | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyComponent extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| itemCount: 0 | |
| }; | |
| this.addItem = this.addItem.bind(this); | |
| } | |
| addItem() { | |
| this.setState({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class Board { | |
| constructor(numberOfRows, numberOfColumns, numberOfBombs) { | |
| this._numberOfBombs = numberOfBombs; | |
| this._numberOfTiles = (numberOfRows * numberOfColumns); | |
| this._playerBoard = Board.generatePlayerBoard(numberOfRows, numberOfColumns); | |
| this._bombBoard = Board.generatePlayerBoard(numberOfRows, numberOfColumns, numberOfBombs); | |
| } | |
| get playerBoard () { | |
| return this._playerBoard; |