import { createRouter, createWebHashHistory } from "vue-router"; import TrigoView from "@/views/TrigoView.vue"; import OnnxTestView from "@/views/OnnxTestView.vue"; import TrigoAgentTestView from "@/views/TrigoAgentTestView.vue"; import TrigoTreeTestView from "@/views/TrigoTreeTestView.vue"; import SocketTestView from "@/views/SocketTestView.vue"; import MCTSAnalysisView from "@/views/MCTSAnalysisView.vue"; const router = createRouter({ history: createWebHashHistory(import.meta.env.BASE_URL), routes: [ { path: "/", name: "single-game", component: TrigoView, meta: { mode: "single" } }, { path: "/vs-ai", name: "vs-ai", component: TrigoView, meta: { mode: "vs-ai" } }, { path: "/vs-people", name: "vs-people", component: TrigoView, meta: { mode: "vs-people" } }, { path: "/library", name: "library", component: TrigoView, meta: { mode: "library" } }, { path: "/onnx-test", name: "onnx-test", component: OnnxTestView }, { path: "/agent-test", name: "agent-test", component: TrigoAgentTestView }, { path: "/tree-test", name: "tree-test", component: TrigoTreeTestView }, { path: "/socket-test", name: "socket-test", component: SocketTestView }, { path: "/mcts-analysis", name: "mcts-analysis", component: MCTSAnalysisView } ] }); export default router;