Download the PHP package gheb/tamagotchi without Composer

On this page you can find all versions of the php package gheb/tamagotchi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tamagotchi

Tamagotchi

A colleague of mine once came with a fish at work. At first I thought, waow, I need one too ! And then I thought of every single day I won't be able to feed him :( This is when I decided as a side project to build a Tamagotchi Like project, and use an AI to decide what's to do next.

The tamagotchi has need such as hunger, sleepiness and sometimes wants to play. Each has an influence on it's health. If you do not take care of feeding him, put it to bed or play with it, the tamagotchi will eventually die faster.

Since my skills in animations/drawing are bellow zero, I used some free spritesheets.

I could have used tensorflow or phpml but I wanted to use this project to learn how it works. And this project is the result with the idea of reuse it later for other projects.

There is many things I would change, or not do the same way I did, but this is an experimental project. Maybe I'll code a better one later :)

The Front is designed to be displayed on a 800x480 raspberry screen but should works on any screen that respect the ratio.

Play

Clone the project or install it with composer:

This project comes with a docker file for the database. and a dev compose file with adminer to navigate through the db while debugging.

with adminer

then

and when you are done

If you do not use docker, clone this project. You'll need yarn, composer, mysql, php7.1. And then execute the commands:

Then you need to train the AI. I encourage you to read how NEAT (Neuro Evolution of Augmented Topology) Génetic Algorithm works. To create a bunch of population and let the neat-bundle evaluate each genome to learn, run:

It's an infinite loop that'll try it's best to evolve a neural network and smash the score !

In order to get the best genome and play it's network upon the inputs, run:

If you don't use docker, you can run a webserver and the websocket by using the start script.

you can now launch your navigator and open the http://localhost:8000

to run the all thing in the background you'll need supervisor

Create a configuration file for the program

Then you must tell supervisor to get and load this new config.

TROUBLESHOUTING

error: <class 'socket.error'>, [Errno 13] Permission denied: file: /usr/lib/python2.7/socket.py line: 228

if you got this message when lauching supervisorctl command, update /etc/supervisor/supervisor.conf and change the unix_http_server chmod to 766

Todo


All versions of tamagotchi with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gheb/tamagotchi contains the following files

Loading the files please wait ....