Giter Site home page Giter Site logo

paintbot's Introduction

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Paintbot

A game of wits between programmers where they develop bots to compete against each other in painting a canvas in their bot's color. The webpage for the game can be viewed at https://paintbot.cygni.se/

Originally based on Cygni's Snakebot

This is the server and api repository, other parts:

Want to create your own client?

If you want to create your own client, please take a look at Client info

Getting started with intellij

  • Make sure you have enabled the gradle plugin in intellij
  • When creating the project, be sure to import the build.gradle file, otherwise things go wrong

To do test-runs:

  • Start up the server with
> ./gradlew clean build
> ./gradlew bootRun
  • Start up the webapp as described in the README. You have to change some configuration for it to go towards your local server.
const location = { origin: "http://localhost" };
  • Execute the main-method of one of the clients in the clients folder
  • Check the console for a link to watch the finished game, it should be in the format of
http://localhost:3000/game/{gameId}

New Release

To create a new release using a git repo as the artefactory simply ensure the build.gradle file uses a local folder to "publish" the artifacts, which should be default. Then run ./gradlew api:publish, ./gradlew client:publish and ./gradlew client-util:publish. This should build the artifacts under releases/. This folder should then be copied into the paintbot-maven-repo projects and pushed to the main branch.

Infrastructure

In order to update the infrastructure please try to use the terraform scripts in 'terraform' folder

cd terraform
AWS_PROFILE=westbos terraform apply

Most of the AWS resources are in the terraform state some still needs to be imported.

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.