当前位置:网站首页>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

边栏推荐
- 为什么要用lock 【readonly】object?为什么不要lock(this)?
- Internet cafe management system and database
- Are internal consultants and external consultants in SAP implementation projects difficult or successful? [English version]
- Page Jump and database connection of student management system
- Distributed cache breakdown
- The cloud monitoring system hertzbeat V1.1.0 is released, and a command starts the monitoring journey!
- Basic knowledge of wechat applet cloud development literacy chapter (I) document structure
- How to make a website? What should I pay attention to when making a website?
- How to build an app at low cost
- Typora收费?搭建VS Code MarkDown写作环境
猜你喜欢

年中了,准备了少量的自动化面试题,欢迎来自测

You have a chance, here is a stage

About Stacked Generalization

成为 TD Hero,做用技术改变世界的超级英雄 | 来自 TDengine 社区的邀请函

oracle sql综合运用 习题

Application of intelligent reservoir management based on 3D GIS system

Programmers use personalized Wallpapers

With a goal of 50million days' living, pwnk wants to build a "Disneyland" for the next generation of young people

leetcode:1856. Maximum value of minimum product of subarray

setInterval里面的函数不能有括号
随机推荐
What is the main function of cloud disk? How to restore deleted pictures
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
Typora收费?搭建VS Code MarkDown写作环境
About Stacked Generalization
The cloud monitoring system hertzbeat V1.1.0 is released, and a command starts the monitoring journey!
Localized operation on cloud, the sea going experience of kilimall, the largest e-commerce platform in East Africa
Maui uses Masa blazor component library
Database stored procedure begin end
MySQL concept - View
机器人迷雾之算力与智能
oracle sql综合运用 习题
虚拟文件系统
leetcode:84. The largest rectangle in the histogram
RealNetworks vs. 微软:早期流媒体行业之争
Accumulateur Spark et variables de diffusion
On BOM and DOM (4): dom0/dom2 event handling analysis
LuChen technology was invited to join NVIDIA startup acceleration program
应用配置管理,基础原理分析
数据库 存储过程 begin end
你有一个机会,这里有一个舞台