This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { cookies } from "next/headers" | |
import { db } from "~/server/db/client" | |
import { procedureFactory } from "~/server/rpc/procedureFactory" | |
import { z } from "zod" | |
const getAuthContext = async () => { | |
const cookie = cookies().get("auth") | |
if (!cookie) { | |
return { user: null } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import curses | |
import os | |
import random | |
import sys | |
def get_cell(row_index: int, column_index: int, player: tuple[int, int], target: tuple[int, int]): | |
if player == (row_index, column_index): | |
return '¤' | |
if target == (row_index, column_index): |
OlderNewer