Skip to content

wangyiwei2015/SlidingMatrix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sliding Matrix

Authors: eEhyQx, greatoyster, cykenjay.

Star this project on here.

  • Basic rules
  • GUI
  • Undo the previous step
  • Step documents
  • Create map by degree
  • Set map by sequence
  • Import steps according to sequence
  • Download my solution
  • Help
  • Create a map by seed
  • PlayGround Mode
  • Get Battle-map
  • Upload solution
  • Score board
  • Battle Mode
  • Tips
  • Mobile Device Version
  • Tricks

Sliding Matrix is a game designed by Qixuan Zhang, Zihan Jia, and Yuming Xiang, which shared similar rules with Rubik's Cube. The player who solves the Sliding Matrix through the fewest steps will win the game.

Click to play!

How to play?

A Sliding Matrix is a square with n*n blocks filled with misplaced integers from 1 to n*n. Select a row(or col) by move the Cursor through W(up)-A(left)-S(down)-D(right). Then click I(up)-J(left)-K(down)-L(right) to 'swipe' the row(or col). Click O to undo the previous step. Click U to switch to Battle Mode.

Solve the sliding Matrix by transforming it to ordered integers $1$~$n^2$.

map_guide

Basic tricks

PlayGround Mode

PlayGround Mode is a mode for training and testing. In this mode you can,

  • Create a random or ordered map by degree
  • Set map by sequence
  • Import steps according to sequence
  • Download my solution
  • Create a map by seed

Play Ground Mode

Create a map by degree

Select Map-degree from 2~15, then click SUBMIT to generate an ordered map, or RANDOMIZE for a random one.

Set map by sequence

Enter a sequence like 1,2,3,4,5,6,7,8,9 to generate a map as you wish. The sequence should satisfying following conditions,

  1. Each number should be split by ,.
  2. It should be a legal map, which means the sequence should have a length of n*n and filled with numbers from 1 to n*n.
  3. It needs to be able to be solved. We will help you confirm this based on the conclusions of paper in reference.

Import steps

Enter a sequence of steps to transform the map. The sequence should be formed like the following case.

Play Ground Mode

Download my solution

Save the steps you entered so far as a .txt file, and download it. The steps are stored with the same format of Inputs of Import steps.

Battle Mode

Battle Mode will show the map that posted on our GitHub repo, which will automatically be generated randomly every week by the backend. Players should solve it through the minimal steps and upload it. After checking it will be shown on the global Score board. In this mode you can,

  • Import steps according to sequence
  • Check global Score board
  • Upload my solution
  • Download my solution

When clicking U switch to the Battle Mode, the color of the scenery will be reversed. Battle Mode and PlayGround Mode are parallel, they don't share the map or step_documents, you can switch between them by clicking U any time you want.

Import steps

Enter a sequence of steps to transform the map. The sequence should be formed like the following case.

Play Ground Mode

Download my solution

Save the steps you entered so far as a .txt file, and download it. The steps are stored with the same format of Inputs of Import steps.

Reference

Research into 2D Magic Cube and Cayley Graph Diameter

对平面魔方群及其Cayley图直径的研究

About

Game of SlidingMatrix.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 38.5%
  • JavaScript 35.9%
  • HTML 21.8%
  • Swift 3.8%