Coder Social home page Coder Social logo

42-sastantua's Introduction

sastantua @ 42

Allosimanius Syneca is a planet noted for ice, snow, mind-hurtling beauty and
stunning cold. The view from the top of the Ice Crystal Pyramids of Sastantua
is widely known for its ability to release the observer’s mind to hitherto
unexperienced horizons of beauty.

This is one of the numerous projects done during the 42 piscine in July 2015. It was completed in a week and can display fancy pyramids in ASCII that follow a simple set of rules. The objective was to recreate the output of a given binary perfectly.

The unix utility diff was useful when testing.

Compiling

The project currently only has the functions for generating the pyramid. To compile, you will need a main. Assuming you have a working libft:

#include "libft.h"

int	main(int argc, char *argv[])
{
	if (argc < 2)
		return 0;

	sastantua(ft_atoi(argv[1]));
}

Alternatively, you can replace ft_atoi with the standard atoi implementation (using stdlib.h instead).

Usage

Compiling this into a sastantua executable, you get:

$ ./sastantua 3

               /*\
              /***\
             /*****\
          /***********\
         /*************\
        /***************\
       /*****************\
    /***********************\
   /*************************\
  /************|||************\
 /*************|||*************\
/**************|||**************\

42-sastantua's People

Contributors

pbondoer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.