跳到正文
Hacker News:AI 熱帖·· 7 天前AI 評分38

terminactory:以 Rust 和 ratatui 編寫的終端原生放置工廠遊戲

Show HN: A terminal-native idle factory game, written in Rust with ratatui

AI 導讀

terminactory 是一款以 Rust 和 ratatui 編寫、在終端運行的放置工廠遊戲,可與 AI Agent 並行使用。玩家可建造和刪除設施、查看收入,遊戲亦提供虛構瀏覽器、研究圖表及 Claude Code hooks,讓 Agent 在遊戲內傳送訊息。

正文

Image 1Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Show HN: A terminal-native idle factory game, written in Rust with ratatui (gitlab.com/snipedbywifi) 38 points by snipedbywifi1 hour ago | hide | past | favorite | 2 comments Hey HN readers! I'm snipedbywifi (https://gitlab.com/snipedbywifi), and i've been working on terminactory. Please try it out if you'd like to play a cozy factory game while waiting for long agent tasks to finish! The game is a factory game (overused niche, i know xD), but runs in your terminal. Reason i built it? glad you asked: So basically, it started off with me wanting a terminal-native factory game. Me and the modern 5.5 claude models made a base for the game that I liked, and then i went ham adding features / fixing some minor flaws (like adding claude code hooks so you recieve "telegrams" [the agent's responses], so you can review progress directly in-game). (yes, I had heavy AI assistance, disclaimer!!!) Right now, the game has basic factory features you'd expect from a game like this (build stuff, delete stuff, measure how much you're earning, basic selection tools), along with a few more.. "unexpected" features. This includes a fake in-game browser that has a wiki, fake forums, some fun bits of lore, some more lore, a LOT more lore, and a research graph that shows how many items or how much RP (research points) you'd need to unlock something, and some more QOL features. If anyone actually has this issue / want of a terminal-based game that runs alongside your agents so you don't doomscroll, do you have any suggestions, or additional ideas I could add? It's hosted on GitLab, soo, that's one additional thing i'd like to mention Thanks for reading!! snipedbywifi (p.s. first HN post lol) (p.s. p.s. there's a lot of hidden lore in the game, so.. lore-divers? you might like it?) help Image 2Joker_vD17 minutes ago[–] > It is made to sit in a split next to your AI agents. They can send you short messages that show up in the game, so you can play while they work. > Agent messages > Your AI agents can message you inside the game. A message costs the agent only the words in it, and nothing prints on success. Messages wait while the game is closed. It's kinda amazing how the ancient "local mail" technology keeps getting reinvented, you know, and reintegrated inside the gameplay? NetHack had its its "mail demon" since... (googles) version 1.0.2, in April 1985 — the creature would spawn in the game, deliver you a scroll of mail, and vanish. And apparently, it's still in use nowadays? "On public servers such as nethack.alt.org, a user may observe other users' games and communicate with them by sending mail." reply Image 3snipedbywifi11 minutes ago | parent[–] wow, i didn't know about NetHack, that's pretty damn cool! and yeah, genuinely insane how we came full-circle lol... on terminactory it uses claude code hooks, with an optional "tfac msg" command (tried to minimize token usage, hence the hook) but yeah, the netHack thing is pretty cool, guess you learn something new every day? xD reply Image 4 Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact Search:

來源:Hacker News:AI 熱帖 · news.ycombinator.com