GithubHelp home page GithubHelp logo

ftupas / starkonquest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onlydustxyz/starkonquest

0.0 0.0 0.0 203 KB

An educational game to learn Cairo where you implement ship AIs that fight to catch as much dust as possible!

License: Apache License 2.0

Shell 0.11% Python 5.92% Makefile 0.05% Cairo 93.92%

starkonquest's Introduction

StarKonquest

pull requests welcome badge follow on Twitter License License

StarKonquest Contracts written in Cairo for StarkNet.

StarKonquest is an educational game to learn Cairo, in which you implement ship AIs that fight each others in a finite 2D grid to catch as much dust as possible.

The entire game runs in a single transaction, meaning the ships cannot be controlled manually. Players must implement an effective ship AI that will detect and catch dust as quickly as possible.

Dust move in random directions and bounce on the borders of the grid. There can be at most one ship on a cell of the grid, so ships can block each others.

Tournament logic is also implemented, allowing dozens of players to fight in multiple battles until only one winner remains.

Usage

⚠️ WARNING! ⚠️

This repo contains highly experimental code. Expect rapid iteration. Use at your own risk.

Set up the project

Requirements

📦 Install

protostar install
python -m venv env
source env/bin/activate
pip install -r requirements.txt
nile install

⛏️ Compile

make

Goal

Implement your ship to catch as much dust as possible.

Here are some working example of different ship implementations.

Get started

See instructions to deploy and run a tournament locally.

Testing

make test

Coding your ship logic can be tricky, we suggest you use tests to check your code.

You can get inspiration from the basic ship tests and run this specific test with export match=basic_ship && make test.

Contributing

Please read CONTRIBUTING.md.

📄 License

starkonquest is released under the Apache-2.0.

starkonquest's People

Contributors

anthonybuisset avatar ofux avatar bernardstanislas avatar abdelstark avatar ftupas 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.