Skip to content

An AI for Slay the Spire, built on top of ForgottenArbiter's CommunicationMod

Notifications You must be signed in to change notification settings

elidupree/borg_the_spire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Borg the Spire (under construction)

An AI/cyborg gameplay helper for Slay the Spire. Runs alongside Slay the Spire and shows an external window with AI suggestions.

Fair warning: This is a toy project for me, and I don't particularly expect to complete it or make it convenient for anyone but me to use.

This crate compiles to an executable usable with CommunicationMod.

There are two separate subcommands, borg_the_spire communicate and borg_the_spire live-analyze. communicate talks to CommunicationMod and saves the gamestate to a file. live-analyze watches the file for changes and serves a webpage that displays its analysis. This division exists for two reasons:

  • First, it allows me to change and rebuild the live-analyze part without interrupting a combat in the actual game of Slay the Spire.
  • Second, it allows me to run the CPU-heavy part (live-analyze) on a separate computer.

To run Borg the Spire:

  • cargo build
  • Set the CommunicationMod command to run borg_the_spire communicate [state-file], giving a filepath where the gamestate will be saved (e.g. command=C\:\\Path\\To\\borg_the_spire\\target\\debug\\borg_the_spire.exe communicate C\:\\Path\\To\\borg_the_spire\\data\\latest_communication_mod_state.json)
  • Run Slay the Spire with mods, enabling CommunicationMod
  • Run borg_the_spire live-analyze --state-file=[state-file] --static-files=Path\\To\\borg_the_spire\\static --data-files=Path\\To\\borg_the_spire\\data --ip=[ip] --port=[port], which will watch the state file, analyze it whenever it changes, and serve the analyzed output. ip is an address to listen on, perhaps localhost.
  • While borg_the_spire live-analyze is running, go to http://[ip]:[port]/ in a browser for the interface.

About

An AI for Slay the Spire, built on top of ForgottenArbiter's CommunicationMod

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages