游戏王残局简化版

Check-in [703e7f100e]
Login

Check-in [703e7f100e]

Overview
Comment:
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 703e7f100e8fc79dab84b10ccaf2214bedca3d84300169c8b165d20b1499e188
User & Date: 顽雨沉风 on 2024-02-12 14:27:02
Other Links: manifest | tags
Context
2024-02-12
14:27
check-in: 9046251063 user: 顽雨沉风 tags: trunk
14:27
check-in: 703e7f100e user: 顽雨沉风 tags: trunk
14:25
check-in: 4c945b2149 user: 顽雨沉风 tags: trunk
Changes

Added 残局文料/lua_lib/算机_程语_月_基类_能_传能_历_基类_表_排_取联.lua version [c35c09e3a7].

















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
local d = {}
-- 启
--~ 排
--~ 办排中值的能
--~ 入参2
--~ 入参3
function d.历排(o1_0, o1, o2, o3, o4)
  local k1
  --~ 和
  k1 = o1_0[1] or 0
  for o5 = 2, #o1_0 do
    k1 = o1(k1, o2(o1_0[o5], o3, o4))
    end
  return k1
  end
return d

Modified 残局文料/lua_lib/算机_程语_月_基类_表_排_基类_数.lua from [29b9a012f6] to [5e4b84b802].

1
2

3
4
5
6
7
8
9
10

11
12
13
14
15
16
17
1

2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
17

-
+







-
+







local 字集库 = require("u8_to_a")
local 历排联库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_排_内联"))
local 历排联库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_排_内联"))
local 返参库 = require(字集库.u8_to_a("算机_程语_月_基类_能_返参"))
local 基算库 = require(字集库.u8_to_a("算机_程语_月_基类_数_基算"))
local 历排库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_排_取全"))
local 数库 = require(字集库.u8_to_a("算机_程语_月_基类_数"))
local d = {}
--~ 排
function d.总和(o1_0)
  return 历排联库.历排(o1_0, 基算库.加法, 返参库.一参)
  return 历排联库.历排(o1_0, 基算库.加法, 返参库.一参)
  end
--~ 排
function d.均值(o1_0)
  local k1
  --~ 总和
  k1 = d.总和(o1_0)
  return 基算库.除法(k1, #o1_0)