Skip to content

Commit

Permalink
chore: disable tournament gameplay
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ committed Dec 4, 2024
1 parent 31b80fd commit 62954b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions referee/referee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import { KinesisClient, PutRecordsCommand } from "@aws-sdk/client-kinesis";
import { Packet } from "utils/HydraMultiplayer/base.js";
import { fromHex, toHex } from "utils/helpers.js";



const NETWORK_ID = Number(process.env.NETWORK_ID);
const HYDRA_NODE = "http://localhost:4001/";
const RECORD_STATS = true;
Expand Down Expand Up @@ -279,8 +277,6 @@ hydra.onNewGame = async (newGameId, humanCount, botCount, ephemeralKey) => {
expectedHumans = humanCount;
expectedBots = botCount;
const tournamentOpen = 1733238000000; // Dec 3, 2024, 3pm GMT
isQualifier =
new Date().valueOf() > tournamentOpen && humanCount === 1 && botCount > 0;
await sendEvent(gameId, {
type: "new_game",
game_id: gameId,
Expand Down
4 changes: 2 additions & 2 deletions src/components/InitialView/InitialView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ const InitialView: FC<InitialViewProps> = ({ startGame }) => {

return (
<>
{Date.now() > 1733238000000 && (
{/* {Date.now() > 1733238000000 && (
<Button className="w-96 h-16" onClick={handleTournamentLogin}>
Tournament Login
</Button>
)}
)} */}
<Button className="w-96 h-16" onClick={showActionButtons}>
Free Play
</Button>
Expand Down

0 comments on commit 62954b5

Please sign in to comment.