Skip to content

Commit 732db8d

Browse files
committed
tiny: Update the debugging data
1 parent 5191f29 commit 732db8d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/demo-react/gamestate/reducer.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { timerMiddleware } from './timer';
99

1010
import Adagrams from 'demo/adagrams';
1111

12-
const GO_STRAIGHT_TO_GAME = false;
12+
const GO_STRAIGHT_TO_WIN = false;
1313

1414
const initialState_real = {
1515
currentScreen: ScreenId.MAIN_MENU,
@@ -26,9 +26,9 @@ const initialState_real = {
2626
players: [], // No players known initially.
2727
};
2828

29-
// For debugging, this goes straight to the game screen:
30-
const initialState_straighttoGame = {
31-
currentScreen: ScreenId.GAME,
29+
// For debugging, this goes straight to the win screen:
30+
const initialState_straighttoWin = {
31+
currentScreen: ScreenId.WIN,
3232
lastError: "", // The error set by the last action
3333
// in-game props
3434
gameTimer: 5, // seconds
@@ -40,14 +40,14 @@ const initialState_straighttoGame = {
4040
desiredPlayers: 4,
4141
roundsPerGame: 2,
4242
players: [
43-
{ name: 'First Player', words: [[]]},
44-
{ name: 'Second Player', words: [[]]},
45-
{ name: 'Third Player', words: [[]]},
46-
{ name: 'Fourth Player', words: [[]]}
43+
{ name: 'Max', words: [['HELL', 'LOW'], ['WORLD']]},
44+
{ name: 'Min Soo Jung', words: [[], ['OLE']]},
45+
{ name: 'Alexandria', words: [['HELLO'], ['DROLE', 'ROLE']]},
46+
{ name: 'Jacqueline', words: [['DROOL'], ['ROWL']]}
4747
],
4848
};
4949

50-
export const initialState = GO_STRAIGHT_TO_GAME ? initialState_straighttoGame : initialState_real;
50+
export const initialState = GO_STRAIGHT_TO_WIN ? initialState_straighttoWin : initialState_real;
5151

5252
// TODO: We need a break in between turns!
5353
// TODO: How could we deal with the first player getting more time to think?

0 commit comments

Comments
 (0)