GithubHelp home page GithubHelp logo

minecrab's Introduction

Minecrab

Minecrab is a game in which players write bytecode to fight each other on a 2D map.

Each player submits two files, bytecode and memory, which are used to created the init process of the user. After all init processes are created, they are on their own and the players have no control over them. Processes can create new processes, mine resources, attack other players' processes, etc. to win the game. Try to make the best AI fighter!

Processes run on a specially crafted instruction set and can interact with various game components with system calls.

A game consists of several ticks. In each tick, every process is run for a certain number of cycles. Every process has a finite number of ticks that it can live for, and a player leaves the game as soon as their init process dies. The game continues until every player has left.

When the game ends, players are ranked according to their scores. A player gains score when one of their processes survives for a tick, or when the game ends and they have leftover cryptocurrency.

For more details, read the files in the docs folder. Note that documentation may contain inaccuracies. When in doubt, check the code.

How To Play

Write a good AI program and assemble it into a bytecode file (The assembler tool might be useful.) You also need to prepare an initial memory file for the program. Both files must be exactly 65536 bytes, otherwise it is undefined behavior.

Then run the game as described in game setup, and sit back and watch all the processes fight!

minecrab's People

Contributors

toxicpie avatar

Stargazers

hyperbola avatar Roland Petrean 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.