cubes

Happy Cube Solver

License

License

Categories

Categories

Net
GroupId

GroupId

com.bipinet.cubes
ArtifactId

ArtifactId

cubes
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

cubes
Happy Cube Solver
Project URL

Project URL

https://github.com/ajurge/cubes
Source Code Management

Source Code Management

https://github.com/ajurge/cubes

Download cubes

How to add to project

<!-- https://jarcasting.com/artifacts/com.bipinet.cubes/cubes/ -->
<dependency>
    <groupId>com.bipinet.cubes</groupId>
    <artifactId>cubes</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.bipinet.cubes/cubes/
implementation 'com.bipinet.cubes:cubes:1.0.2'
// https://jarcasting.com/artifacts/com.bipinet.cubes/cubes/
implementation ("com.bipinet.cubes:cubes:1.0.2")
'com.bipinet.cubes:cubes:jar:1.0.2'
<dependency org="com.bipinet.cubes" name="cubes" rev="1.0.2">
  <artifact name="cubes" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.bipinet.cubes', module='cubes', version='1.0.2')
)
libraryDependencies += "com.bipinet.cubes" % "cubes" % "1.0.2"
[com.bipinet.cubes/cubes "1.0.2"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Build Status codecov License: MIT Bintray Maven Central

Happy Cube Solver

See Happy Cube website and Wikipedia for more details about Happy Cube.

Instructions

Project should be built and run using Java 1.8.

There are four Happy cubes: blue, red, violet and yellow that are encoded using ' ' and 'o' ASCII characters and stored in the text files inside the project's resources directory. All the four files will be copied into the project's (or JAR's) current working directory. Files with solutions for all the cubes will be stored in the current working directory also.

From IDE execute com.bipinet.cubes.cube.HappyCube.main() .

Alternatively build with Maven clean install and execute in the terminal java -jar cubes-1.0-SNAPSHOT.jar

Happy Cube pieces in input files.

     ooooo ooooo ooooo
     o   o o   o o   o
     o 0 o o 1 o o 2 o  
     o   o o   o o   o
     ooooo ooooo ooooo   

     ooooo ooooo ooooo
     o   o o   o o   o
     o 2 o o 4 o o 5 o  
     o   o o   o o   o
     ooooo ooooo ooooo 

Solved Happy Cube in unfolded representation.

      ooooo ooooo ooooo
      o   o o   o o   o
      o 0 o o 1 o o 5 o  
      o   o o   o o   o
      ooooo ooooo ooooo 

             ooooo
             o   o
             o 2 o
             o   o
             ooooo

             ooooo
             o   o
             o 3 o
             o   o
             ooooo

             ooooo
             o   o
             o 4 o
             o   o
             ooooo  

Versions

Version
1.0.2