当前位置:网站首页>Decryption of the original divine square stone mechanism
Decryption of the original divine square stone mechanism
2022-06-24 07:03:00 【Haitian Eagle】
The mechanism hidden in the easternmost part of the crane temple is illuminated with feathers , appear 5 Geshi mechanism .
It's too hard , Write a code to traverse .
Take a random hit
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes"/>
<title> Decryption of the original divine square stone mechanism </title>
<style>
button { margin:10px; }
</style>
</head>
<body>
<p id='p'> https: //www.bilibili.com/read/cv12370247</p>
<p id='order'></p>
<p id='count'></p>
<div id='result'></div>
<script>
var a = 1, b = 2, c = 2, d = 1, e = 3;
var ac = 0, bc = 0, cc = 0, dc = 0, ec = 0;
var order='';
document.getElementById('p').innerText = ' initial (' + a + ',' + b + ',' + c + ',' + d + ',' + e + ')';
function hit() {
var r = Math.floor(Math.random() * 5) + 1;
if (r == 1) {
order += 'a';
ac++;
if (a < 3)
a++;
else
a = 1;
/*
if (e < 3)
e++;
else
e = 1;
*/
if (b < 3)
b++;
else
b = 1;
var button = document.createElement('button');
button.innerText = 'a:' + ac + ' (' + a + ',' + b + ',' + c + ',' + d + ',' + e + ')';
document.getElementById('result').appendChild(button);
}
if (r == 2) {
order += 'b';
bc++;
if (b < 3)
b++;
else
b = 1;
if (a < 3)
a++;
else
a = 1;
if (c < 3)
c++;
else
c = 1;
var button = document.createElement('button');
button.innerText = 'b:' + bc + ' (' + a + ',' + b + ',' + c + ',' + d + ',' + e + ')';
document.getElementById('result').appendChild(button);
}
if (r == 3) {
order += 'c';
cc++;
if (c < 3)
c++;
else
c = 1;
if (b < 3)
b++;
else
b = 1;
if (d < 3)
d++;
else
d = 1;
var button = document.createElement('button');
button.innerText = 'c:' + cc + ' (' + a + ',' + b + ',' + c + ',' + d + ',' + e + ')';
document.getElementById('result').appendChild(button);
}
if (r == 4) {
order += 'd';
dc++;
if (d < 3)
d++;
else
d = 1;
if (c < 3)
c++;
else
c = 1;
if (e < 3)
e++;
else
e = 1;
var button = document.createElement('button');
button.innerText = 'd:' + dc + ' (' + a + ',' + b + ',' + c + ',' + d + ',' + e + ')';
document.getElementById('result').appendChild(button);
}
if (r == 5) {
order += 'e';
ec++;
if (e < 3)
e++;
else
e = 1;
if (d < 3)
d++;
else
d = 1;
/*
if (a < 3)
a++;
else
a = 1;
*/
var button = document.createElement('button');
button.innerText = 'e:' + ec + ' (' + a + ',' + b + ',' + c + ',' + d + ',' + e + ')';
document.getElementById('result').appendChild(button);
}
document.getElementById('order').innerText = ' Strike sequence :' + order;
document.getElementById('count').innerHTML = 'a:' + ac + ', b:' + bc + ', c:' + cc + ', d:' + dc + ', e:' + ec + '<br> Total hits :' + (ac+bc+cc+dc+ec);
if (a == 3 && b == 3 && c == 3 && d == 3 && e == 3){
clearInterval(id);
}
}
var id = setInterval(hit, 10);
</script>
</body>
</html>The minimum number of strokes to brush

边栏推荐
- Cloudcompare & PCL point cloud clipping (based on clipping box)
- Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.
- Code scanning | a sharp tool for controlling code quality
- oracle sql综合运用 习题
- Record -- about the method of adding report control to virtual studio2017 -- reportview control
- In the half year, there were 2.14 million paying users, a year-on-year increase of 62.5%, and New Oriental online launched its private domain
- Do you want to research programming? I got six!
- FreeRTOS MPU使系统更健壮!
- [5 minutes to play lighthouse] take you to the light kubernetes release k3s
- Intelligent Vision Group A4 paper recognition example
猜你喜欢

【二叉树】——二叉树中序遍历

Intelligent Vision Group A4 paper recognition example
![Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.](/img/2c/d04f5dfbacb62de9cf673359791aa9.png)
Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.

leetcode:剑指 Offer 26:判断t1中是否含有t2的全部拓扑结构

Maui uses Masa blazor component library
![Jumping game ii[greedy practice]](/img/e4/f59bb1f5137495ea357462100e2b38.png)
Jumping game ii[greedy practice]

目标5000万日活,Pwnk欲打造下一代年轻人的“迪士尼乐园”

setInterval里面的函数不能有括号

You have a chance, here is a stage

Leetcode: Sword finger offer 26: judge whether T1 contains all topologies of T2
随机推荐
leetcode:84. The largest rectangle in the histogram
浅谈如何运营好小红书账号:利用好长尾词理论
Code scanning | a sharp tool for controlling code quality
Rockscache schematic diagram of cache operation
On BOM and DOM (4): dom0/dom2 event handling analysis
What are the easy-to-use character recognition software? Which are the mobile terminal and PC terminal respectively
RealNetworks vs. Microsoft: the battle in the early streaming media industry
How to make a website? What should I pay attention to when making a website?
In the half year, there were 2.14 million paying users, a year-on-year increase of 62.5%, and New Oriental online launched its private domain
Le système de surveillance du nuage hertzbeat v1.1.0 a été publié, une commande pour démarrer le voyage de surveillance!
C语言学生管理系统——可检查用户输入合法性,双向带头循环链表
JSON online parsing and the structure of JSON
leetcode:1856. Maximum value of minimum product of subarray
云监控系统 HertzBeat v1.1.0 发布,一条命令开启监控之旅!
In the middle of the year, I have prepared a small number of automated interview questions. Welcome to the self-test
Spark项目打包优化实践
With a goal of 50million days' living, pwnk wants to build a "Disneyland" for the next generation of young people
Why does the remote end receive a check-out notice when the TRTC applet turns off audio and video locally
Distributed cache breakdown
You have a chance, here is a stage