Coder Social home page Coder Social logo

java_rubiks_cube's Introduction

Java_Rubiks_Cube

A virtual Rubik's cube written in java with multiple functions to manipulate a rubiks cube.

---functions included (and syntax)---

  1. demo( int scrams ) -

  2. negate( String move ) - Move(String) takes given move and returns the oposite move.

  3. rowRight( int row ) - int row(row number 0-2 to be rotated right)

  4. rowLeft( int row ) - int row(row number 0-2 to be rotated to the left)

  5. columnDown( int column ) - int column ( column 0-2 to be rotated down)

  6. columnUp( int column ) - int column (column 0 -2 to be rotated up)

  7. calcSim( Cube cube2 ) - Compares each cell of given cube and object cube, returns % similarity

  8. printCube() - Prints cube with each face labeled to console

  9. scramble( int scrams ) - Randomly makes int scrams amount of random moves to the cube.

  10. interpretMove( String move ) - String move (move abbreviation to be completed) executes move abbreviation.

How the cube is ordered

  • [0] Front Face
  • [1] Top Face
  • [2] Back Face
  • [3] Bottom Face
  • [4] Left Face
  • [5] Right Face

How the cube face's are ordered

[0] [1] [2] [0] R R R

[1] R R R

[2] R R R

Move Abreviations

  • U# - rotate column # up
  • D# - rotate column # down
  • L# - rotate row # to the left
  • R# - rotate row # to the right

java_rubiks_cube's People

Contributors

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