This file contains 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
import React from 'react'; | |
import './SearchBar.css'; | |
class SearchBar extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
This file contains 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
import './App.css'; | |
import BusinessList from './components/businessList/businessList'; | |
import SearchBar from './components/searchBar/searchBar'; | |
import React, { Component } from 'react'; | |
import Yelp from './util/Yelp'; | |
import './App.css'; | |
class App extends React.Component { | |
constructor(state){ |
This file contains 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
import React from 'react'; | |
import './App.css'; | |
import BusinessList from '../components/businessList'; | |
import Search from '../components/searchBar'; | |
import React, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
render() { |
This file contains 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
import React from 'react'; | |
import './businessList.css'; | |
import Business from '../Business/Business'; | |
class BusinessList extends React.Component { | |
render( | |
return ( | |
<div className="BusinessList"> |
This file contains 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
import React from 'react'; | |
import './searchBar.css'; | |
const sortByOptions{ | |
'Best Match': 'best_match', | |
'Highest Rated': 'rating', | |
'Most Reviewed': 'review_count' | |
} |
This file contains 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 Game{ | |
constructor(numberOfRows, numberOfColumns, numberOfBombs){ | |
this._board = new Board(numberOfRows, numberOfColumns, numberOfBombs); | |
} | |
playMove(rowIndex, columnIndex){ | |
this._board.flipTile(rowIndex, columnIndex); | |
if (this._board.playerBoard[rowIndex][columnIndex] === 'B'){ | |
console.log('GAME OVER!'); |