1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106 | ;; ardegazu-peer-kit — a headless Node peer for the ardegazu.ro suite.
;;
;; The package root ("." export): one var per public symbol, re-exported by the
;; :index shadow module as dist/index.js. The list mirrors src/index.ts @ v1.3.0
;; exactly — every value-level export the TypeScript kit had, under the same
;; name, so `import { GameRoom, … } from "ardegazu-peer-kit"` is unchanged for
;; consumers (the bot value-requires ~20 of these).
;;
;; `parseFriendLink`, `buildFriendLink`, `SUITE_APPS` and `mintRoomUrl` used to
;; come from src/vendor/social; they now come from the real
;; ardegazu-social-kit, whose CLJS sources are on this build's classpath.
(ns ardegazu.peer.index
(:require [ardegazu.social.friends :as sk-friends]
[ardegazu.social.invites :as sk-invites]
[ardegazu.peer.apps :as apps]
[ardegazu.peer.connect :as connect]
[ardegazu.peer.core.net :as net]
[ardegazu.peer.core.room-crypto :as room-crypto]
[ardegazu.peer.node.env :as env]
[ardegazu.peer.node.identity :as node-identity]
[ardegazu.peer.social.agent :as social]
[ardegazu.peer.games.room :as room]
[ardegazu.peer.games.seance :as seance]
[ardegazu.peer.games.neon-grid :as neon-grid]
[ardegazu.peer.games.tessera :as tessera]
[ardegazu.peer.games.lampion :as lampion]
[ardegazu.peer.games.odeon :as odeon]
[ardegazu.peer.games.valley-blocks :as valley-blocks]
[ardegazu.peer.games.valley-blocks-brain :as brain]
[ardegazu.peer.games.host.rng :as rng]
[ardegazu.peer.games.host.driver :as driver]
[ardegazu.peer.games.host.seance-sim :as seance-sim]
[ardegazu.peer.games.host.seance-host :as seance-host]
[ardegazu.peer.games.host.neon-grid-sim :as neon-grid-sim]
[ardegazu.peer.games.host.neon-grid-host :as neon-grid-host]
[ardegazu.peer.games.host.valley-blocks-sim :as vb-sim]
[ardegazu.peer.games.host.valley-blocks-host :as vb-host]
[ardegazu.peer.games.host.valley-blocks-engine :as vb-engine]
[ardegazu.peer.gym.seance :as gym-seance]
[ardegazu.peer.gym.neon-grid :as gym-neon-grid]
[ardegazu.peer.gym.valley-blocks :as gym-valley-blocks]))
;; connect
(def connect connect/connect)
(def RoomPeer connect/RoomPeer)
;; apps
(def GAMES apps/GAMES)
(def SIGNAL apps/SIGNAL)
(def DEFAULT-ORIGIN apps/DEFAULT-ORIGIN)
;; core
(def new-room-secret room-crypto/new-room-secret)
(def create-net net/create-net)
;; node env / identity
(def install-origin env/install-origin)
(def install-browser-globals env/install-browser-globals)
(def load-identity node-identity/load-identity)
;; game clients
(def GameRoom room/GameRoom)
(def SeanceClient seance/SeanceClient)
(def NeonGridClient neon-grid/NeonGridClient)
(def TesseraClient tessera/TesseraClient)
(def LampionClient lampion/LampionClient)
(def OdeonClient odeon/OdeonClient)
(def ValleyBlocksClient valley-blocks/ValleyBlocksClient)
;; social
(def Social social/Social)
(def suite-friend-link social/suite-friend-link)
;; social helpers a bot fleet needs for matchmaking — now the REAL kit
(def build-friend-link sk-friends/build-friend-link)
(def parse-friend-link sk-friends/parse-friend-link)
(def SUITE-APPS sk-invites/SUITE-APPS)
(def mint-room-url sk-invites/mint-room-url)
;; hosting + offline training (the ported host sims and their gym wrappers)
(def HostDriver driver/HostDriver)
(def SeanceHost seance-host/SeanceHost)
(def NeonGridHost neon-grid-host/NeonGridHost)
(def ValleyBlocksHost vb-host/ValleyBlocksHost)
(def SeanceSim seance-sim/SeanceSim)
(def NeonGridSim neon-grid-sim/NeonGridSim)
(def ValleyBlocksSim vb-sim/ValleyBlocksSim)
(def ValleyBlocksEngine vb-engine/ValleyBlocksEngine)
;; the valley-blocks placement brain
(def enumerate-placements brain/enumerate-placements)
(def execute-placement brain/execute-placement)
(def placement-step brain/placement-step)
(def plan-of brain/plan-of)
(def board-metrics brain/board-metrics)
(def dellacherie-score brain/dellacherie-score)
(def stock-pick brain/stock-pick)
(def snake-step brain/snake-step)
;; rng
(def mulberry32 rng/mulberry32)
;; gyms
(def SeanceGym gym-seance/SeanceGym)
(def NeonGridGym gym-neon-grid/NeonGridGym)
(def ValleyBlocksGym gym-valley-blocks/ValleyBlocksGym)
|