GithubHelp home page GithubHelp logo

mover's Introduction

Mover

A simple console game. Game has multiple levels. At the beginning of each level you will be shown a board wil boxes for 3 seconds. Then boxes will be spread across the board randomly. Your task is to move the boxes to turn the board to its initial state. You have to manage to complete it before timer hits 0.

How to run the game from terminal:

Code compilation commands imitate Intellij's build command

Compile source code

javac -d out/production/Mover src/**/*.java

Copy level files

cp src/level/*.txt out/production/Mover/level 

Start the game

cd out/production/Mover && java Game

Controls: w s a d

  • w - move up
  • s - move left
  • a - move down
  • d - move right
  • e - see target board

To push or pull a box hold SHIFT key and use controls.

Levels

Levels are customizable. You can add new levels by creating files inside src/level/.

File name should be level-N.txt format, for ex. level-1.txt, level-2.txt.

10 5 60
----------
---#--#---
---#--#---
---#--#---
----------

1st line of file is level info. Consists of 3 columns:

  1. Map width
  2. Map height
  3. Time limit in seconds

The rest of the file is the representaion of the level board map:

  • - Empty spot
  • # Box

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.