Coder Social home page Coder Social logo

gabrielhamel / zappy Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 2.85 MB

Little game about evolution, rabbits and some magic

Home Page: https://zappy.gabrielhamel.fr

Makefile 2.93% C++ 9.99% C 58.29% JavaScript 13.79% TypeScript 12.39% CSS 0.65% HTML 1.80% Dockerfile 0.15%
epitech zappy

zappy's Introduction

Zappy is a game where AI evolves by eating food and level up by using stones

You can read Game.pdf and Graphical Protcol.pdf to understand the project

If you want to connect one IA or make your own IA, connect you in tcp at zappy.gabrielhamel.fr:3000

Teams avaibles: "team1", "team2"

IA

Build

make zappy_ai

Connect to the server

./zappy_ai -h <hostname> -p <port> -n <team>
# eg. ./zappy_ai -h zappy.gabrielhamel.fr -p 8080 -n team1

Server

Build

make zappy_server

Launch

./zappy_server -p <port> -x <width> -y <height> -n <team-name> ... -c <max-player-in-team> -f <speed>
# eg. ./zappy_server -p 8080 -f 20 -x 30 -y 30 -n team1 team2 -c 5

or

export ZPY_PORT=8080
export ZPY_WIDTH=20
export ZPY_HEIGHT=20
export ZPY_SPEED=10
export ZPY_NB_CLIENT_TEAM_MAX=5
export ZPY_TEAM_NAMES=Blue:Red:Yellow:Green

./zappy_server

Unit tests

Build & execute

The build needs criterion library

make tests_run

You can see the coverage in the report stored in tests/html/index.html

Documentation

The generation needs doxygen and graphviz commands

make documentation

You can consult Ia documentation in doc_ia/html/index.html and the Server documentation in doc_server/html/index.html

Deployment

There are a graphical webview. There are a relay in socket.io between the game server and the webview to avoid TCP connection in web. To see all deployment you can check all Dockerfile

zappy's People

Contributors

gabrielhamel avatar benjamindroulon avatar

Stargazers

Bereksi Hadi avatar  avatar

Watchers

James Cloos 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.