Git Product home page Git Product logo

42-berlin-so_long's Introduction

so_long game

Basic 2D game in which a bird can go to the nest after eating all cherries.

Languages

My Skills

Features

  • The bird’s goal is to collect all cherries present on the map, then go inside the nest chosing the shortest possible route.

  • The W, A, S, and D keys can be used to move the bird in 4 directions: up, down, left, right. Arrow keys can also be used alternatively.

  • The bird is not able to move into walls.

  • At every move, the current number of movements is displayed in the shell.

    so_long_game.mp4

Map

  • The map can be composed of only these 6 characters:

    • 0 empty space,
    • 1 wall,
    • C collectible/cherry,
    • E map exit/nest,
    • P player’s/bird's starting position.
    • W enemy
  • The map must contain 1 exit, at least 1 collectible, and 1 starting position to be valid.

  • The map must be rectangular.

  • The map must be closed/surrounded by walls. If it’s not, the program will return an error.

  • Map should have a valid solution.

Usage

  • Compile and create the executables
    make
    
  • Start the game
    ./so_long <map file path>
    
    Example
    ./so_long maps/big_mapv.ber
    

Resources

Result: 1️⃣0️⃣8️⃣ / 1️⃣0️⃣0️⃣ ✔️

42-berlin-so_long's People

Contributors

dvnishshanka avatar

Stargazers

 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.