Skip to content

Commit

Permalink
Merge pull request #21 from Robert3141/beta
Browse files Browse the repository at this point in the history
v2.3.0
  • Loading branch information
Robert3141 committed Nov 14, 2019
2 parents ed88f0f + 224e960 commit 43e9a15
Show file tree
Hide file tree
Showing 5 changed files with 242 additions and 175 deletions.
18 changes: 10 additions & 8 deletions lib/UI/UIgame.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,19 @@ class _GamePageState extends State<GamePage> {
}
//output winner
msgBox(
globals.errorTitleWin,
globals.errorMsgWinner +
globals.outputTitleWin,
globals.outputMsgWinner +
globals.playerNames[winnerNumber] +
globals.errorMsgOverall +
globals.outputMsgOverall +
globals.playerNames[overallWinner],
true);
} else {
//output winner
msgBox(globals.errorTitleWin,
globals.errorMsgWinner + globals.playerNames[winnerNumber], false);
msgBox(globals.outputTitleWin,
globals.outputMsgWinner + globals.playerNames[winnerNumber], false);
//reset variables
globals.playerBombs = new List<bool>.generate(globals.amountOfPlayers,
(i) => false);
globals.mainBoard = new List<List<int>>.generate(globals.boardSize,
(i) => List<int>.generate(globals.boardSize, (j) => 0));
globals.playerNumber = 1;
Expand Down Expand Up @@ -231,12 +233,12 @@ class _GamePageState extends State<GamePage> {
nextRound(winner);
}
} else {
msgBox(globals.errorTitleInput, globals.errorMsgBoardNoSpace, false);
msgBox(globals.errorTitleInput, globals.outputMsgBoardNoSpace, false);
globals.running = false;
}
}
} catch (e) {
msgBox("Error", e.toString(), false);
msgBox(globals.errorTitleError, e.toString(), false);
}
}

Expand Down Expand Up @@ -264,7 +266,7 @@ class _GamePageState extends State<GamePage> {
IconButton(
icon: Icon(Icons.help),
onPressed: () {
msgBox(globals.errorTitleHelp, globals.errorMsgHelpGame, false);
msgBox(globals.helpTitleHelp, globals.helpMsgHelpGame, false);
},
)
],
Expand Down

0 comments on commit 43e9a15

Please sign in to comment.