GithubHelp home page GithubHelp logo

enzo-mourany / biosphere7-ai Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 55 KB

AI for a board game where the most important thing is to hove more plants than the other player

Java 100.00%
ai game-development java

biosphere7-ai's Introduction

Biosphere 7

Biosphere 7 is a board game for 2 players.

Rules

Setup

The game board is a 14x14 grid. Each player has 7 plants. Each plant has between 1 and 9 vitality points.

Gameplay

Each player may place or cut one plant per turn. A plant may be placed on any empty cell. A plant may be cut if it is adjacent to another plant. When a plant is cut, the vitality points of the plant are added to the vitality points of the adjacent plant. If the adjacent plant has more than 9 vitality points, the excess vitality points are lost.

End of the game

The game ends when all the plants have been placed or cut. The winning player is the one who has the most vitality points.

Fertilization

It is possible to fertilize a plant to increase its vitality points. A player may fertilize a plant if it is adjacent to another plant. When a plant is fertilized, the vitality points of the adjacent plant are added to the vitality points of the fertilized plant. If the fertilized plant has more than 9 vitality points, the excess vitality points are lost.

Installation

Requirements

Build

$ javac

Run

$ java ./src/Biosphere7.java

Authors

Show your support

Give a ⭐️ if this project helped you!

biosphere7-ai's People

Contributors

enzo-mourany avatar

Stargazers

 avatar  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.