Skip to content

Commit 38ad78c

Browse files
Merge pull request #10 from lambda-mud/anubhav-bhambri
made changes for ending the game
2 parents 0d7912a + 0139073 commit 38ad78c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/components/Gamepage/GamePage.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export default class GamePage extends Component {
3737
description: res.data.description,
3838
players: res.data.players
3939
});
40+
if (this.state.title == 'Seattle' && this.state.cash == 800) {
41+
alert("GAME OVER, you need to start again")
42+
}
4043
})
4144
.catch(err => console.log(err));
4245

0 commit comments

Comments
 (0)