项目作者: simon987

项目描述 :
Assembly programming game
高级语言: Java
项目地址: git://github.com/simon987/Much-Assembly-Required.git
创建时间: 2017-11-03T01:50:01Z
项目社区:https://github.com/simon987/Much-Assembly-Required

开源协议:GNU General Public License v3.0

下载


Much-Assembly-Required

CodeFactor
Build Status

Much Assembly Required allows you to program the 8086-like microprocessor of a robot in a grid-based multiplayer world. The game is web based so no installation is required. In its current state, players can walk around the game universe and collect Biomass blobs and Iron/copper ore using the online code editor.

screenshot from 2017-11-12 13-01-43

Wiki: GitHub
Chat: Slack

Deploying the server

Linux

Installing tools

On Ubuntu 16.04:

  1. sudo apt install git maven openjdk-8-jdk mongodb

On Arch:

  1. sudo pacman -S git maven jdk8-opendjk
  2. yay -S mongodb-bin
  3. # Don't forget to start mongodb
  4. sudo systemctl start mongodb.service

If needed, visit yay installation and troubleshooting mongodb.

Deploying server

  1. # Obtain source files
  2. git clone https://github.com/simon987/Much-Assembly-Required.git
  3. # Build
  4. cd Much-Assembly-Required
  5. mvn package
  6. # Run
  7. cd target
  8. java -jar server-1.4a.jar

Windows (tested on Windows 10)

Installation instructions:

  1. Download the JDK from here.
    Install the JDK and update your PATH and JAVA_HOME environment variables.
  2. Download Maven from here.
    Install Maven (following the README) and update your PATH environment variable.
  3. Download Mongo DB Community from here.
    Install Mongo DB following the instructions here.
    Update your PATH environment variable.

Building instructions:

  1. :: Builds the server
  2. cd Much-Assembly-Required
  3. mvn package

Running instructions:

  1. In one Command Prompt window, run Mongo DB:
    1. :: Runs Mongo DB
    2. mongod
  2. In a second Command Prompt window, run the MAR server:
    1. :: Runs the MAR server
    2. cd Much-Assembly-Required\target
    3. java -jar server-1.4a.jar

macOS (tested on Sierra 10.12.6)

Installation

  1. Install Maven3
    -Add Maven bin to your path
    1. export PATH=/path/to/maven/bin.:$PATH
  2. Install MongoDB.
    -Via Brew:

    1. #Update brew
    2. brew update
    3. #Install mongodb
    4. brew install mongodb
    5. #Install latest development release
    6. brew install mongodb --devel

    -Via .tar.gz

    1. #Extract files:
    2. tar -zxvf mongodb-osx-ssl-x86_64-4.0.3.tgz
    3. #Ensure binaries are in your path
    4. export PATH=<mongodb-install-directory>/bin:$PATH

    If you do not wish to use the default data directory (/data/db), follow the steps for running MongoDB in the install doc.

Deploying Server

  1. Begin MongoDB service

    1. #If brew:
    2. #Launch on login
    3. brew services start mongodb
    4. #Or, if you don't want/need a background service you can just run:
    5. mongod --config /usr/local/etc/mongod.conf
    6. #If binary:
    7. mongod
    8. #Optional, set data directory path:
    9. mongod --dbpath <path to data directory>
  2. Deploy server:

    1. # Obtain source files
    2. git clone https://github.com/simon987/Much-Assembly-Required.git
    3. # Build
    4. cd Much-Assembly-Required
    5. mvn package
    6. # Run
    7. cd target
    8. java -jar server-1.4a.jar

Docker

Requirements

  1. Docker Compose (and dependencies)

Installation

Once Docker and Docker Compose are installed, you can build and start
this application by running the following command inside this
application’s directory:

docker-compose up

Make sure to change mongo_address in config.properties to mongodb.

Vagrant

Requirements

  1. Vagrant
  2. VirtualBox

Installation

When vagrant is installed, you can build and start this application by running the following
command inside this application’s directory:

vagrant up

Running

Once the server is running, you should be able to connect to http://localhost:4567 with your browser

VS Code Extensions