GithubHelp home page GithubHelp logo

kphilemon / maze-runner Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 1.67 MB

A maze console game written in vanilla java using OOP concepts.

License: MIT License

Java 100.00%
java object-oriented-programming console-game console consolegame game maze-generator maze-game maze-generation-algorithms object-oriented

maze-runner's Introduction

Maze_Runner

Made with JAVA

Maze_Runner is a simple yet challenging console-based game written in pure java. It is fully documented and designed as clean as possible for its readability and further development.

This is the final assignment made for my first year programming course (Fundamentals of Programming) at the University of Malaya. Basic concepts of OOP such as class, inheritance, polymorphism, abstraction and encapsulation is implemented in this project. A simple maze generation algorithm is used to generate the dynamic game map as well.

Getting Started

This project does not use any build tools because it's a relatively small project and does not have any dependencies.
So, we will compile and run it manually.

1. Clone the repository

$ git clone https://github.com/kphilemon/Maze_Runner.git

2. Open command prompt and go to the src directory

cd your_path_to_project\Maze_Runner\src

3. Compile the source files

javac main\*.java

4. Run the program

java main.Launcher

Game Play

gameplay.gif

Game Description

Johnny, J, the maze runner, is trapped in a deadly maze.

To escape from the maze, he must find all the keys, K, that are scattered in the maze. After collecting all the keys, the exit, E, will appear at the corner of the maze.

Johnny's visibility is very limited due to the heavy fog, #, he couldn't see beyond two blocks. However, there's a holy torch, %, hidden somewhere in the maze. It could help to boost Johnny's visibility.

And of course, Johnny is just a normal guy, he couldn't see or walk through the maze walls. Every valid movement will cost Johnny a drop of blood. So make your move wisely!

How to play?

  1. Start the game by entering the size of the game map. (Difficulty increases with the map size)

  2. In the game, Johnny can move in four directions. Use the arrow keys (up, down, left, right) to control Johnny's movement.

  3. Escape the maze to win the game!

Note: If the arrow keys do not work, click on the small window at the top left corner and try again.

Author

Connect with me on LinkedIn or follow me on Github.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

maze-runner's People

Contributors

kphilemon avatar

Stargazers

 avatar  avatar  avatar

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.