the-dummies-go

command module
v1.1.0 Latest Latest
Warning

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

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

README

Lugo - The Dummies Go

GoDoc Go Report Card

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

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.

Option A - Running them in containers (no Git Clone needed)

Download the Docker compose file that starts the server along with 11 instances of The Dummies bot.

Start the set of containers:

TEAM_IMAGE=lugobots/the-dummies-go TEAM_PLACE=away docker-compose up

That command will start the team as the away team (defined by the env variable TEAM_PLACE). Now you may start your bot to play against The Dummies

If you are working in your bot, and you want to play against The Dummies several times to test your bot, so I recommend you having a copy of The Dummies in you machine because the bots will startup faster than running them as containers.

  1. Clone the repository to your machine
  2. Start the game server
    docker run -p 8080:8080  lugobots/server:v1.1 play --dev-mode
    

and then, you may execute the script ./play.sh [home|away] in that directory when 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 Lugo 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=lugobots/the-dummies-go \
    AWAY_TEAM=lugobots/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=lugobots/the-dummies-go \
AWAY_TEAM=lugobots/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