Directories
¶
| Path | Synopsis |
|---|---|
|
Package assets embeds the artwork the interface ships.
|
Package assets embeds the artwork the interface ships. |
|
gen
command
Command gen regenerates the reduced cover artwork in assets/ from a full-resolution source.
|
Command gen regenerates the reduced cover artwork in assets/ from a full-resolution source. |
|
cmd
|
|
|
twixtui
command
Command twixtui plays TwixT in the terminal.
|
Command twixtui plays TwixT in the terminal. |
|
Package docs embeds the project's reference documents so that the command line can print them without needing the repository or a network connection.
|
Package docs embeds the project's reference documents so that the command line can print them without needing the repository or a network connection. |
|
internal
|
|
|
app
Package app is the interactive shell: the screens a player moves between and the state they share.
|
Package app is the interactive shell: the screens a player moves between and the state they share. |
|
bot
Package bot plays TwixT. One alpha-beta search backs four effort tiers and the hint feature; the tiers differ in the guards they search under — how long they may think, how deep they may look, how many nodes they may visit — in how many candidate moves they keep, and in how much of the evaluation they are allowed to see.
|
Package bot plays TwixT. One alpha-beta search backs four effort tiers and the hint feature; the tiers differ in the guards they search under — how long they may think, how deep they may look, how many nodes they may visit — in how many candidate moves they keep, and in how much of the evaluation they are allowed to see. |
|
cli
Package cli builds the command line.
|
Package cli builds the command line. |
|
cover
Package cover draws the artwork behind the menu.
|
Package cover draws the artwork behind the menu. |
|
e2e
Package e2e drives the compiled binary inside a real terminal so that rendering, key handling and resize behaviour can be asserted on the frames a user would actually see.
|
Package e2e drives the compiled binary inside a real terminal so that rendering, key handling and resize behaviour can be asserted on the frames a user would actually see. |
|
gamestore
Package gamestore keeps games on disk: finished games worth replaying, games interrupted part way through, and correspondence games waiting for the opponent's next move code.
|
Package gamestore keeps games on disk: finished games worth replaying, games interrupted part way through, and correspondence games waiting for the opponent's next move code. |
|
humantime
Package humantime renders an instant as the rough age a person would say out loud: "just now", "3 minutes ago", "yesterday".
|
Package humantime renders an instant as the rough age a person would say out loud: "just now", "3 minutes ago", "yesterday". |
|
leaderboard
Package leaderboard records finished games and ranks the players who played them.
|
Package leaderboard records finished games and ranks the players who played them. |
|
learn
Package learn holds the interactive tutorial: an ordered set of lessons, each a sequence of steps that pairs a position on the board with a short piece of prose, and where useful with a task the learner answers by choosing a hole.
|
Package learn holds the interactive tutorial: an ordered set of lessons, each a sequence of steps that pairs a position on the board with a short piece of prose, and where useful with a task the learner answers by choosing a hole. |
|
netplay
Package netplay carries a TwixT game between two machines.
|
Package netplay carries a TwixT game between two machines. |
|
profile
Package profile stores the local player identities twixtui plays under.
|
Package profile stores the local player identities twixtui plays under. |
|
study
Package study keeps a player's own notes and bookmarks on saved games.
|
Package study keeps a player's own notes and bookmarks on saved games. |
|
theme
Package theme holds the colour schemes the board and the interface are drawn with, and remembers which one the player chose.
|
Package theme holds the colour schemes the board and the interface are drawn with, and remembers which one the player chose. |
|
ui
Package ui is the reusable terminal view layer for TwixT: a board renderer with two drawing scales and a scrolling viewport, a layout engine that fits board and information panel into any terminal size, and a data-driven keymap.
|
Package ui is the reusable terminal view layer for TwixT: a board renderer with two drawing scales and a scrolling viewport, a layout engine that fits board and information panel into any terminal size, and a data-driven keymap. |
|
winfs
Package winfs holds the Windows filesystem primitives twixtui's stores need and the standard library does not offer: a whole-file lock, opening a file for reading in a way that does not block its replacement, and replacing a file in place.
|
Package winfs holds the Windows filesystem primitives twixtui's stores need and the standard library does not offer: a whole-file lock, opening a file for reading in a way that does not block its replacement, and replacing a file in place. |
|
winfs/winfstest
Package winfstest makes a directory refuse to be written to, which is what a test needs in order to cover a configuration directory on read-only media or belonging to somebody else.
|
Package winfstest makes a directory refuse to be written to, which is what a test needs in order to cover a configuration directory on read-only media or belonging to somebody else. |
Click to show internal directories.
Click to hide internal directories.