|
@@ -8,7 +8,7 @@ import Loading from '../../util/Loading';
|
|
|
import JoinForm from './JoinForm';
|
|
|
import styles from './Lobby.module.css';
|
|
|
import StartGame from './StartGame';
|
|
|
-import { NORMAL, TIME_BANK, FROZEN } from '../../../domain/ruleSets';
|
|
|
+import { NORMAL, TIME_BANK, FROZEN, COUNTRY_RACE } from '../../../domain/ruleSets';
|
|
|
|
|
|
const GameInfo = () => {
|
|
|
const { rounds, timer, countryLock, ruleSet } = useGameConfig();
|
|
@@ -19,6 +19,9 @@ const GameInfo = () => {
|
|
|
|
|
|
let explanation;
|
|
|
switch (ruleSet) {
|
|
|
+ case COUNTRY_RACE:
|
|
|
+ explanation = `${rounds !== 1 ? ", each": ""} with a ${ms(timer * 1000)} time limit, where you must be the fastest to select the right country`;
|
|
|
+ break
|
|
|
case FROZEN:
|
|
|
explanation = `${rounds !== 1 ? ", each" : ""} with a ${ms(timer * 1000)} time limit, and you will not be able to adjust your view`;
|
|
|
break;
|