Sign inSign up

ericmdev/noughtsandcrosses

By ericmdev

•Updated over 10 years ago

Dockerfile of NoughtsAndCrosses application environment - Debian NGINX FANN PHP-FPM (FANN).

Image
0

2.1K

ericmdev/noughtsandcrosses repository overview

⁠NoughtsAndCrosses

Build Status Stories in Ready Coverage Status

A PHP application that learns to play Xs and Os.

It uses artifical neural networks to improve gameplay based on numeric weights tuned on experience.

The application demonstrates machine learning in a PHP game.

⁠Application Environment
⁠Native Docker

You can build and run the NoughtsAndCrosses application environment using native Docker.

On your local machine, build the docker image and then run the container.

Use the Makefile to build the Docker NoughtsAndCrosses image.

$ make -f ./docker/Makefile build

You can also use Makefile [containers|clean|clean-image|exec|ip|machines|run].

Browser: Visit: <docker_machine_ip>:<docker_container_host_port_80>/index.php.

⁠Vagrant

Vagrant up creates a virtual machine with Docker installed.

VM:

  • OS: Ubuntu 14.04.1 LTS (Trusty Tahr) - 64-bit
  • Memory: 512 MB

Provisioning: Provisioning builds the Docker image noughtsandcrosses-image and runs the Docker container noughtsandcrosses-container inside the vm.

# Spin up Vagrant VM.
$ vagrant up

# SSH to Vagrant VM at host port 2222.
$ vagrant ssh

# Show Docker images.
$ docker images

# Show Docker running containers.
$ docker ps -a

# Access Docker container.
$ docker exec -it noughtsandcrosses-container bash
⁠Development
⁠Troubleshooting
  • Segmentation fault: train file in wrong format.

Tag summary

Content type

Image

Digest

Size

273.4 MB

Last updated

almost 11 years ago

docker pull ericmdev/noughtsandcrosses