In order to describe cube state we need to introduce orientation concept of pieces. Edge is in correct orientation if we can find sequence of moves that allows to insert one in correct place but not using two defined faces which are opposed to each other. Choice of opposed faces is unrestricted but remember that
Our next goal is to run new docker container using docker composer. I think it is the simplest way to define what we need and how container should look like. After run of docker we need to check ip adress of docker machine:
konra@DESKTOP-JHE54VH MINGW64 ~/dev/docker
$ docker-machine ip default
Now when we know that we should add this ip and
In order to implement cube representation I will need to divide cube to few separate elements. Cube has twelve edges (two-color pieces) and eight corners (three-color pieces). Edges that we can specify: UF UL UB UR DF DL DB DR FL BL BR FR and this is possible corners: UFR UFL UBL UBR DFR DFL
I’ve decided to learn new tool called Docker that allow us to virtualise development environment. This is first article of series that will be describing progress of my learning this tool. I’m going to use Windows 10 and Docker Toolbox. Installation So let’s begin with Docker Toolbox. We need to download it from Docker Toolbox
I hope you have read my previous post. If no, it will be better if you do it before because code that we will write today will be better understood for you then. Article is also available in Polish version. Tests for HTM metric So, let’s start from HTM metric which is really simple metric.
Today we will say about some susceptibility in PHP language, which has been described on Michala Špačeka’s Twitter some time ago. Article is also available in Polish version. Namely, he noted that in the PHP language the following comparison returns a true value
var_dump(md5('240610708') == md5('QNKCDZO')); //true
At the first moment, it would look like a collision occurrence
After we created a scrambles generator, our next step is to create the classes responsible for measuring the length of scrambles. There are mainly two metrics: Quarter Turn Metric (QTM) Half Turn Metric (HTM) Half Turn Metric (HTM) – also called Face Turn Metric (FTM), is a metric for 3×3 cubes, where every movement of
Book rating: I decided to publicate occasionally reviews of interesting books that I read. So this is the first one, review of “Refactoring: Improving the Design of Existing Code” book written by Martin Fowler in cooperation with few others famous programmers. Article is also available in Polish version. What the book is about Who of
In my previous article i described theory which is necessary to write generator of scrambling algorithms. Now it’s time to begin first lines of code. If you didn’t read mentioned theory, it will be the best option if you do it before because it will help you to understand code which will be written today.
Today I will focus on theory of scrambling algorithms which will be needed during writing generator of scramble algorithms. Generator will be implementing in future article which will appear soon. Article also available in Polish version. Notation description There are few notation which are used to write cube moves down. The one which is the