Giter Site home page Giter Site logo

cube-wall's Introduction

Cube Wall(魔方找茬)

我在知乎偶然看到一个问题《最强大脑》中的魔方找茬是怎么做到的?,里面提到用看3D画的技巧就可以找到不同的色块。正好我曾经练习过祼眼看3D画,便想找个魔方墙生成工具来挑战一下。找了很久,只看到有Windows版本的程序,便决定自己写一个在线的版本。

cube-wall是一个在线魔方找茬程序。它生成两组由N*N个彩色方块组成的魔方墙,两面墙之间仅有一个色块不同。你可以试着用看3D画的技巧来找出不同的色块。

本程序最高支持1000*1000的墙面生成(数字太多可能会让你的浏览器崩溃)。

来挑战吧!

Screenshot(屏幕截图)

cube-wall's People

Contributors

tigerlee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cube-wall's Issues

可能产生完全相同的两幅图

我在练习中,有时会遇到完全相同的两幅图。为此我阅读了您的代码,发现了问题的来源
在 HTML 文件的第 194 行:
let color = this.randomColor(m[x][x])
根据形参的名字,我推测此处函数的实参应为 this.matrixthis.point 位置的颜色,所以此行应改为
let color = this.randomColor(m[x][y])
望及修正此Bug,谢谢

考虑增强用户体验

1 增加明确的判定机制,包括是否错误,是否正确,错误后几秒内不允许再次点击
2 增加对比功能,如果鼠标在左侧出现,则右侧会出现相同位置的标识

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.