Code Monkey home page Code Monkey logo

backdrop_placement's Introduction

Backdrop Placement for FTC Centerstage

Author: T-Lind

A simple tool to help you place your pixels in Centerstage.

Overview:

What's the technically best way to place your pixels in Centerstage? This tool will help you figure that out. Or, more specifically, it would if it was faster. It uses DFS to find the best placement, but it's too slow to be useful past ~8 pixels. I'm sure you could do something like A* but I'm to lazy to make a heuristic.

Usage:

  • dfs.py uses a simple depth-first search in order to find the best placement of a random array of pixels.
  • bfs.py uses breadth-first search, but I really wouldn't recommend it, since the frontiers get too big too fast.
  • greedy_dfs.py does DFS but sorts first by score. However, I think it's actually slower than regular DFS.
  • parallel_dfs.py uses the multiprocessing library to send out multiple searches at once. It's the fastest, but it's still too slow to be useful.
  • one_deep.py just performs a simple comparison of where to place one pixel, only looking at what maximizes the immediate score the most

Example:

img.png
Result of running parallel_dfs.py for about a minute or so.

backdrop_placement's People

Contributors

t-lind avatar

Watchers

 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.