Giter Site home page Giter Site logo

prikhi / kittensautomate Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 0.0 72 KB

An Automation UI for Kittens Game

License: GNU General Public License v3.0

Elm 88.81% JavaScript 11.19%
kittens-game autoclicker elm automation kittens userscript scriptkitties incremental idle game

kittensautomate's Introduction

Kittens Automate

An Automation UI for Kittens Game written in Elm.

The script is still in early development, right now you can automatically:

  • Gather Catnip(fixed at 10 clicks/sec atm)
  • Build Buildings When Resources >= 90% of Max(for buildings that don't require craftable resources)
  • Craft Items Using 20% of Available Resources
    • For Capped: When Resources >= 90% of Max
    • For Uncapped: When Resources >= 1000% of Price
  • Observe Astronomical Events
  • Send Your Hunters when at Max Catpower
  • Praise the Sun when at Max Faith

TODO:

  • Fix building automation when button not displayed
  • Fix parsing of JSON for buildings with multiple stages
  • Craft multiple recipes with non-overlapping ingredients at once
  • Population management
    • minimum amount of farmers to never starve
      • rebalance in cold winter or whenever catnip production is negative?
    • always max engineers
    • sliders to control distribution percentages
  • Configurable catnip click rate
  • Configurable resource current/max ratios for auto building & crafting
  • Configurable crafting amounts or percentage of current resources to use
  • More auto crafting/building options
  • Automated trading
  • Auto research
  • Fullscreen button, turns panel into large modal window(when lots of UI options)
  • Refactor Ports(click link, click building button, click craft button)
  • Refactor Options/Messages
    • Maybe use Dict for options so we can represent options w/ strings instead of attributes
  • Allow options migrations(so different set of options don't clear previous choices)
  • Figure out buying strategy for resources with no cap
    • Something like when cost is 10% of current?
npm i
git submodule update --init
cd game/
# Add `<script src='http://localhost:7000/app.js'></script>` to index.html
python -m http.server 8080 &
xdg-open http://localhost:8000 &
cd ..
webpack watch

To load the script manually, run the following in devtools console:

var script = document.createElement('script');
script.setAttribute('src', 'http://localhost:7000/app.js');
document.head.appendChild(script);

Eventually, the script should be auto-built and pushed to github pages.

kittensautomate's People

Contributors

prikhi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.