GithubHelp home page GithubHelp logo

marmelab / 15-puzzle-go Goto Github PK

View Code? Open in Web Editor NEW
0.0 13.0 1.0 80 KB

A CLI tool to play the 15-puzzle game, in Go

License: MIT License

Makefile 3.76% Go 95.92% Dockerfile 0.32%
agile-integration game

15-puzzle-go's Introduction

onboarding Archived Repository
The code of this repository was written during a Marmelab agile integration. The associated blog post illustrates the efforts of the new hiree, who had to implement a board game in several languages and platforms as part of his initial learning.
This code is not intended to be used in production, and is not maintained.

15-puzzle-go

A CLI tool to play the 15 puzzle game, in Go.

See the related article on the Marmelab blog

Help

Print all available commands

make

Build

Install

Install the dependencies, compile the code and build the docker

make install

Install prod

Install the dependencies, compile the code and build the docker in production mode

make install-prod

Publish

Publish the docker in the docker hub 15-puzzle-api. Note: be careful, you should be logged before!

make publish

Run the project

Run the CLI game

Run the 15-puzzle game in dev or prod mode

make run

Note:

  • you can use the environment variable ENV to define the running env
  • you can use the environment variable SIZE to define the puzzle size

For example with a size equals to 5:

ENV=prod SIZE=5 make run

Run the webserver

Run the 15-puzzle webserver at port 2000 in dev or prod mode

make run-server

Note:

  • you can use en environment variable ENV to define the running env
  • you can use en environment variable PORT to define the port (from 2000 to 3000)
ENV=prod PORT=2017 make run-server

Contributing

Test

Run all tests

make test

Linter

Run the gofmt linter

make lint

15-puzzle-go's People

Contributors

alexisjanvier avatar fzaninotto avatar jpetitcolas avatar luwangel avatar sedy-bot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

dmitrymomot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.