Code Monkey home page Code Monkey logo

hexai's Introduction

Run npm install and open index.html to see a few not-very-smart (but not completely random) bots compete in a field of hexagons.

App screenshot

Game rules

Every cell gains one resource points per move if it has less than 100 points. Every player (bot) can transfer some amount of resource from one cell to another per move. To capture a cell that belongs to another player, the amount of resource transfered needs to be higher than the target cell. The resource difference between source and target cells is dicarded after the move.

This is probably missing some details, but the basic idea should be clear. I should've written the rules down much earlier, will need to read code to be sure now -_-

More AI bots

Someday I will write one or more smarter bot implementations. Or challange a friend to write one as well and watch them battle. Now it's just a nicely-looking hexagon animation. Well, and a piece of code to show to employers.

hexai's People

Contributors

palivonas avatar pasakinskas avatar

Watchers

 avatar  avatar

Forkers

pasakinskas

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.