Giter VIP home page Giter VIP logo

kartoffel's Introduction

Kartoffel

Starter pack for a 🥔 kartoffels 🥔 bot.

Usage

Clone repository, run ./build (Linux / Mac) or ./build.bat (Windows) and then upload ./kartoffel to the game.

Note that this repository implements a simple robot that'll probably get killed quite fast - in order to survive, get creative!

Caveat Emptor

When implementing a kartoffel you're essentially creating a firmware, so you don't have access to std - no std::fs, no println!() etc. You can communicate through serial_send(), though, and you can use various fancy structures like Vec through the alloc crate.

You're given 64 KHz CPU and 128 KiB of RAM, have fun.

License

CC0 1.0 Universal

The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.

You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

kartoffel's People

Contributors

patryk27 avatar

Stargazers

Noah Gude avatar Dmitry Golubets  avatar Charlie avatar Ján Bočínec avatar

Watchers

 avatar  avatar

Forkers

maxtnuk

kartoffel's Issues

Using Visual Studio Code with Rust Analyzer

Visual Studio Code didn't work by default with Rust Analyzer when opening the project. From the crate root, I added

vscode/settings.json

{
    "rust-analyzer.cargo.target": "misc/riscv64-kartoffel-bot.json",
    "rust-analyzer.checkOnSave.allTargets": false
}

Then restarted the language server and it worked.

There's also a name conflict that I fixed, but I don't remember if that had an impact on Visual Studio Code. In the Cargo.toml, I changed it to

[package]
name = "kartoffel-example"
version = "0.1.0"
edition = "2021"

[[bin]]
name = "kartoffel-ex"
path = "src/main.rs"

[dependencies]
kartoffel = { git = "https://github.com/Patryk27/kartoffels" }
# kartoffel = { path = "../kartoffels/backend/crates/kartoffel" }

The second name, kartoffel was changed to kartoffel-ex. After this change, running cargo clean then cargo doc --all --open shows the documentation for both the bot crate and the kartoffel library.

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.