the-dummies-go

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

README

MakeItPlay - The Dummies Go

GoDoc Go Report Card

The Dummies Go is a Go implementation of a player (bot) for MakeItPlay football game. This bot was made using the Client Player for Go.

As this name suggest, The Dummies are not that smart, but they may play well enough to help you to test your bot.

Requirements
  1. Docker >= 18.03 (https://docs.docker.com/install/)
  2. Docker Compose >= 1.21 (https://docs.docker.com/compose/install/)
  3. Go Lang >= 1.12 (https://golang.org/doc/install)
Usage

You have two ways to make The Dummies play, they are described below. However, in both ways we will need to start the game server first:

    docker run -p 8080:8080 -it  makeitplay/football:1.0.0-alpha

Then you may start The Dummies and the other team.

Option A (no Git Clone needed)

You do not have to download The Dummies to make it play against your team.

If you only wish to play with them, you may them as a Docker container:

docker run makeitplay/the-dummies-go -team=[home|away] -number=[1-11] 

However, you will need to execute the command above 11 times (one for each player position). So, you may downloading this script and run the command below instead:

./start-team-container.sh makeitplay/the-dummies-go [home|away]

If you are working in your bot, and you would like to play against The Dummies several times to test your bot, I recommend you having a copy of The Dummies in you machine, so it will startup faster than running them as container.

First, clone the project using the command:

go get github.com/makeitplay/the-dummies-go

Then, you may execute the script play.sh [home|away] in that directory always you want to start the team.

The Dummies vs The Dummies

If you have no other team to play against The Dummies or if you are just curious to watch a Make It Play match, you may start a game using The Dummies as the Home and Away teams.

  1. Download the Demo Docker compose file
  2. Execute the command bellow:
    HOME_TEAM=makeitplay/the-dummies-go \
    AWAY_TEAM=makeitplay/the-dummies-go \
    docker-compose -f docker-compose-demo.yml up
    
  3. Watch the game in the browser at the address http://localhost:8080

Important: You probably want to remove that bunch of containers from your environment later. So, execute the command below:

HOME_TEAM=makeitplay/the-dummies-go \
AWAY_TEAM=makeitplay/the-dummies-go \
docker-compose -f docker-compose-demo.yml down

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL