Giter Club home page Giter Club logo

spimbot's Introduction

SPIMbot

Tasks: -build interrupt structure(B) -handle fires -handle bonk -

-build KenKen solver structure

-design plant harvesting algorithm

-design seed planting algorithm

-design watering algorithm

-build generalized move function with trig (to a given location)

priorities -if fire, put out fire -if there is a puzzle, solve puzzle -if there is a fully grown crop, harvest -MAX_GROWTH is an interrupt that triggers when a crop becomes fully grown

Basic logic:

  1. First complete water puzzles to maintain water above threshold
    • let's say able to put out 3 fires
  2. Complete puzzles to plant seeds
    • generally plant seeds as early as possible
  3. Water plants in an evenly distributed way
  4. The robot should be doing puzzles most of the time (in the main thread)
    • interrupts (e.g MAX_GROWTH) will tell the robot to start walking
    • interrupts (e.g TIMER) will tell the robot to stop walking and harvest/water plants/etc

Jing Rong suggestions:

  • I think we should have some firestarters, and set fire to enemy's plants if they are within a certain distance (and not next to our own crops)

What we still need to decide:

  • When should we decide to harvest seeds and not water? When water >> water threshold? And when we should harvest water and not seeds
  • Where we want to plant our plants (e.g do we plant right where we stand? do we plant if there's a enemy robot's plant next to it? do we want to water our plants if the enemy suddenly plants next to our plant?)

spimbot's People

Contributors

drong4 avatar limjingrong avatar

Watchers

 avatar  avatar Bennett Ip 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.