Git Product home page Git Product logo

4dcointainer's Introduction

ABOUT

The idea was to create a container of somewhat cpecial structure. It is of pyramid-like appearance but also provides fractal-like growth

Basic element of container has acess to it's

  • parent element ( the one above )
  • 2 sybling elements ( actualy a double-linked circle of arbitrary length of sybling elements )
  • a child element ( that can also have a child element and a circle of sybling elements of it's own )

The container can be used to store (for example) a sequence of application menue's Like

MAIN_MENU
    <-   CHOICE_1  ->
        <-   SUB_CHOICE_1_1   <->   SUB_CHOICE_1_2   <->   SUB_CHOICE_1_3    <->   ...   <->   SUB_CHOICE_1_1
    <-   CHOICE_2  ->
        ...
            ...   ...   ...
    <-   CHOICE_3  ->

Or

Game
	Lvl-1
		Area-11
			Location-111 -- Location-112 -- Location-113
				room-1111		room-1121		room-1131
				room-1112		room-1122		room-1132
				room-1113		room-1123		room-1133
		Area-2
	Lvl-2
		Area-1

Etc.

The structure is quite hard to represent graphically becouse of its almost nature But the container is fun to move around inside (the xmass.cpp provides possibility of it)

HOW TO

Our MainTest provides ability to fill up such container in runtime

  1. Build solution and run it in Debug mode
  2. Use commands like
show  elem|ring  --  shows current element | ring bound to current elemen
push  iter|prev|next|down  element  --  push new element (int) into container 
goto  iter|prev|uber|next|down  --  move current element in direction (if possible)
pop  --  pops current element (also kills its children)
quit  --  quit application
  1. Start with pushing in root-element
	push iter

4dcointainer's People

Contributors

olehkostiv avatar netmisha avatar

Watchers

James Cloos 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.