GithubHelp home page GithubHelp logo

felipecramos / amaze Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 759 KB

An implementation of a Snake game merged with a maze inside.

License: MIT License

Makefile 7.37% C++ 92.63%
maze snake maze-map doxygen snaze amaze snake-maze snake-game simulation snakegame

amaze's Introduction

AMAZE. A project for Linguagem de Programação I (LP I)

Introduction

This programming project implements a simulation over the SNAKE game, but also adding obstacles, so it also a merge between the game Snake and a Maze, therefore, we shall have our SNAZE. Snake is either controlled by a client, or by a programmed ia, with the purpose to always get the apple.

Description of Amaze goes Here.

Algorithms

Functions implemented for:

  1. Recursively find the path to apple.
  2. Functioning of Snake. Which means it's growing and movement.
  3. c.

TODO

  • Create (functional) Class Maze.
  • Create (functional) Class Snake.
  • Code function to find Snake's path to apple.
  • Code Snake's growing and movement.
  • Make it usable for both client and I.A.
  • Doxygen commentation.
  • Cope function ....

How to compile

First of all, obviously this repository is needed to work as desired, so we must to download this repo. As we know that git is a tremendous tool for any programmer, then we must have git installed.

It is also expected for user to have installed doxygen program. This will automatically generate documentation for code. Not a necessary package to compile and run program, but it is a tool to guide user through code functions. To install doxygen on UBUNTU, for example:

$ sudo apt-get install doxygen

To compile we will use a makefile, so compilations may be more dynamic and automatic.

# Using 'git clone' to clone this repo into desired directory:
$ git clone https://github.com/FelipeCRamos/amaze.git

# Enter repo:
$ cd snaze

# To compile the whole project insert 'make':
$ make

# To generate project documentation, insert 'make docs':
$ make docs

# To clean up all remaining trash data and files, such as the binary ones, insert 'make clean':
$ make clean

How to execute

Now, we show how to run the program. We made it able to generate the maze map either randomicly, or by receiving a file containg maze structure data.

To receive a file, it is needed to run program with 2 command arguments.

  • -f : It says to code that a file is being requested to run.
  • [FILE_NAME]: It tells code which file is this.

To generate random maze structure, run the executable with no arguments.

# To execute program, and create randomicly, simply run program:
$ ./snaze

# To execute program with maze received through file, run like this:
$ ./snaze -f <input_file_name>

Example

Let's say you wish to randomic create the maze map, then you must use like:

$ ./snaze

It will create a total random maze structure.

Now, if you have a file containing maze data(let's consider this file as 'data/input_file.dat'), and is wished to run the code with this specified data, then code must be run as:

$ ./snaze -f data/input_file.dat

GitHub Repository:

https://github.com/FelipeCRamos/amaze

Authorship

Program developed by Daniel Guerra ([email protected]) and Felipe Ramos ([email protected]), 2018.1

© QuebraCódigos_Ltda, 2018.

amaze's People

Contributors

codigos-de-guerra avatar felipecramos avatar

Watchers

 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.