Skip to content

X-R-G-B/ZappyCulteur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zappy[Culteur]

Table of Contents

Introduction

in English

The Zappy (Culteur) is a game in the form of a board without edges (cyclic), where 'trantoriens' (the bees) will move in order to recover resources allowing them to survive and evolve in the but to reach level 8 to win his team. Trantorians have the ability to eject.

The aim is to make a game playable by AIs.

It is divided into 3 parts:

  • Make an IA that tries to survive and evolve in a world.
  • Make a Server that manages the actions of AIs in the world and sends data to the Graphic.
  • Make a Graphic client to the Server that displays the world.
en Français

Le Zappy(Culteur) est un jeu sous forme de plateau sans bords (cyclique), ou des 'trantoriens' (les abeilles) vont se déplacer afin de récupérer des ressources leur perméttants de survivre et d'évoluer dans le but d'atteindre le niveau 8 pour faire gagner son équipe. Les trantoriens ont la possibilité d'éjécter.

Le but est de faire un jeu jouable par des IA.

Il se découpe en 3 parties:

  • Faire une IA qui essaie de survivre et évoluer dans un monde
  • Faire un Serveur qui gère les actions des IA dans le monde et envoi des données au Graphique
  • Faire un client Graphique au Serveur qui permet d'afficher le monde

Installation

Docker
docker run -it --rm --name zappy -v "$PWD:/code" -w "/code" docker.io/epitechcontent/epitest-docker make
OS
  • you need to install make and cmake
# Arch-based
pacman -S make cmake
# Debian-based
apt install make cmake
# Fedora
dnf install make cmake
# Windows: https://www.technewstoday.com/install-and-use-make-in-windows/
  • you need to install SFML (linux only)
# Arch-based
pacman -S sfml-dev
# Debian-based
apt install libsfml-dev
# Fedora
dnf install SFML-devel SFML
# Windows: it will be installed automatically
  • you need to install python and pip
# Arch-based
pacman -S python python-pip
# Debian-based
apt install python3 pip
# Fedora
dnf install python pip
# Windows: available on microsoft store
  • run the following command
make

Usage

Docker
  • The server (and initialize the docker container) if you want a graphical interface, please follow the 2.
  1. on one terminal:
docker run -it --network=host --rm --name zappy -v "$PWD:/code" -w "/code" docker.io/epitechcontent/epitest-docker
make
# ./zappy_server --help
./zappy_server -p 4042 -x 10 -y 20 -n abc -c 5 -f 50
  1. ont one terminal (only tested on linux)
docker run -it --rm --name zappy -v "$PWD:/code" -v "/dev/dri/:/dev/dri/" -v "/tmp/.X11-unix/:/tmp/.X11-unix/" -v "$HOME/.Xauthority:/root/.Xauthority" --network=host  -w "/code" docker.io/epitechcontent/epitest-docker
make
# ./zappy_server --help
./zappy_server -p 4042 -x 10 -y 20 -n abc -c 5 -f 50
  • The graphical user interface (only if you followed step 2.):
docker exec -it -e "DISPLAY=$DISPLAY" zappy bash
dnf install -y mesa-dri-drivers
# ./zappy_gui --help
./zappy_gui -h 127.0.0.1 -p 4042
  • The player (AI/Bot):
docker exec -it zappy bash
# ./zappy_ai --help
./zappy_ai -p 4042 -n abc
OS
  • on one terminal:
# ./zappy_server --help
./zappy_server -p 4042 -x 10 -y 20 -n abc -c 5 -f 50
  • on another terminal:
# ./zappy_gui --help
./zappy_gui -h 127.0.0.1 -p 4042
  • on another terminal:
# ./zappy_ai --help
./zappy_ai -p 4042 -n abc

Graphic-Helper

FOOD:

view image..

honey

LINEMATE:

view image..

rocks

DERAUMERE:

view image..

flower

SIBUR:

view image..

rose

MENDIANE:

view image..

hibiscus

PHIRAS:

view image..

camellia

THYSTAME:

view image..

dahlia

Contributors


Saverio976

TTENSHII

KitetsuK

guillaumeAbel

romainpanno

StEgo2103

Gource

source (on the repo)

Trailer

source (on the repo)

Git-Story

source (ont the repo)

Oral-Presentation

canva link read only