Coder Social home page Coder Social logo

rubik3d's Introduction

Rubik3d

Made in january 2016.

Dynamic lib that display a 3d Rubik's cube, handle keyboard and mouse control, auto shuffle the Rubik's cube given a set of instructions as a string.

It uses glm for math.

IMPORTANT :

This is currently in the process of being rebuilt properly, with proper object oriented behavior, better choice in container, RAII etc ...

Though this is a C++ project, the code use mostly the C part of C++, and gather many mistakes and clumsiness.

I built this in about a week, as a bonus for a 42 school project which asked to solve a Rubik's cube using some algorithm of our own.

I learned OpenGL at this occasion.

dependancies

libsdl2-dev libglew-dev

USAGE

Runs on linux

make test

Example : ./test.sh ./rubik3d "F R U2 B' L' D'"

Controls :

  • Mouse : turn around the cube
  • r s : rotate right
  • l m : rotate left
  • u v : rotate up
  • d e : rotate down
  • b c : rotate back
  • f g : rotate front
  • Enter : if a valid move string is provided, auto shuffle the Rubik's cube

rubik3d's People

Contributors

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