chore: initialize typing-chud project with Unified API structure
- Copy vim-snake structure stripped of game-specific logic - Remove finalScore calculation (raw data only) - Setup example app with keybinding state management - Empty board renders and waits for game logic
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { useRef } from "react";
|
||||
|
||||
export function useBoard() {
|
||||
const containerRef = useRef<HTMLDivElement | null>(null);
|
||||
|
||||
const renderBoard = () => {
|
||||
const container = containerRef.current;
|
||||
if (!container) return;
|
||||
|
||||
// TODO: Implement board rendering
|
||||
};
|
||||
|
||||
return {
|
||||
containerRef,
|
||||
renderBoard,
|
||||
};
|
||||
}
|
||||
|
||||
export type UseBoardType = ReturnType<typeof useBoard>;
|
||||
Reference in New Issue
Block a user