游戏王残局简化版

Check-in [7a7894a746]
Login

Check-in [7a7894a746]

Overview
Comment:遇到瓶颈了
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7a7894a74610a579dda47609202b6e8da640cbde39d5b984eab2a90f8861ff8c
User & Date: 顽雨沉风 on 2024-02-05 09:10:50
Other Links: manifest | tags
Context
2024-02-05
10:01
精度难知呀 check-in: 6bd570d52a user: 顽雨沉风 tags: trunk
09:10
遇到瓶颈了 check-in: 7a7894a746 user: 顽雨沉风 tags: trunk
03:47
记不住加减乘除了 check-in: f4c48d2eb7 user: 顽雨沉风 tags: trunk
Changes

Modified 残局文料/lua_lib/常用库.lua from [c86f65342f] to [87f563d14c].

180
181
182
183
184
185
186





187
180
181
182
183
184
185
186
187
188
189
190
191
192







+
+
+
+
+

  return o1 * o2
  end
--~ 左除数
--~ 右除数
function d.除法(o1, o2)
  return o1 / o2
  end
--~ 左数
--~ 右数
function d.位和(o1, o2)
  return bit.band(o1, o2)
  end
return d

Modified 残局文料/残局改名.lua from [9fdcbe1ee7] to [c8147571cd].

65
66
67
68
69
70
71





72
73
74
75
76
77
78
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83







+
+
+
+
+







  for o1_4 in 数据库:nrows("select * from texts where id = " .. o1) do
    return o1_4
    end
  end
--~ 卡编
function d.取卡数据(o1)
  for o1_4 in 数据库:nrows("select * from datas where id = " .. o1) do
    if o1_4.setcode > 0xffffffff then
      ffi = require("ffi")
      print(bit.tohex(o1_4.setcode, 16), o1_4.setcode, o1_4.setcode == 36592129229979791, bit.tohex(bit.rshift(o1_4.setcode, 31)), bit.tohex(bit.band(o1_4.setcode, 0xf)), string.format("%x", 36592129229979791), bit.tohex(math.fmod(36592129229979791, 0xffff + 1)), math.fmod(36592129229979791, 0xffff + 1), ffi.new("uint64_t[1]", 36592129229979791)[0], tostring(36592129229979791) == tostring(o1_4.setcode), math.modf(36592129229979791 / (0xffff + 1)), bit.tohex(bit.band(o1_4.setcode - 4, ffi.new("uint64_t[1]", 0xffff)[0])))
    else
      end
    return o1_4
    end
  end
--~ 文
function d.局筛卡编(o1)
  local k1_0
  --~ 卡编排
100
101
102
103
104
105
106

107




108
109
110




111
112
113
114
115
116
117
118
119








120
121

122
123
124
125
126
127
128
129







130
131
132
133
134
135
136
105
106
107
108
109
110
111
112
113
114
115
116
117



118
119
120
121
122








123
124
125
126
127
128
129
130
131

132
133







134
135
136
137
138
139
140
141
142
143
144
145
146
147







+

+
+
+
+
-
-
-
+
+
+
+

-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+

-
+

-
-
-
-
-
-
-
+
+
+
+
+
+
+







--~ 卡对排
function d.荐字段名(o1_0)
  local k1, k2
  local k1_0
  --~ 字段对
  k1_0 = {}
  for o1 = 1, #o1_0 do
    --~ for o2 = 1, 11112222 do
    --~ 大字段号
      --~ k1 = f.位和(o1_0[o1].setcode, 0xffff)
      --~ k2 = 
      --~ end
    --~ 大字段号
    k1 = bit.band(o1_0[o1].setcode, 0xffff)
    print(o1_0[o1].setcode)
    if k1 > 0xfff then
    --~ k1 = bit.band(o1_0[o1].setcode, 0xffff)
    --~ print(o1_0[o1].setcode)
    --~ print(f.位和(o1_0[o1].setcode, 0xffff))
    --~ if k1 > 0xfff then
      --~ 字段名
      k2 = 字段名对[k1]
      print(k1, k2)
      if k1_0[k2] then
        k1_0[k2] = k1_0[k2] + 1
      else
        k1_0[k2] = 1
        end
      end
      --~ k2 = 字段名对[k1]
      --~ print(k1, k2)
      --~ if k1_0[k2] then
        --~ k1_0[k2] = k1_0[k2] + 1
      --~ else
        --~ k1_0[k2] = 1
        --~ end
      --~ end
    --~ 小字段号
    k1 = bit.band(o1_0[o1].setcode, 0xfff)
    --~ k1 = bit.band(o1_0[o1].setcode, 0xfff)
    --~ 字段名
    k2 = 字段名对[k1]
    if k1_0[k2] then
      k1_0[k2] = k1_0[k2] + 1
    elseif k2 == nil then
    else
      k1_0[k2] = 1
      end
    --~ k2 = 字段名对[k1]
    --~ if k1_0[k2] then
      --~ k1_0[k2] = k1_0[k2] + 1
    --~ elseif k2 == nil then
    --~ else
      --~ k1_0[k2] = 1
      --~ end
    end
  end
--~ 目对
function d.残局改名(o1_0)
  local k1_0, k2_0, k3_0, k4_0, k5_0, k6_0
  --~ 文件排
  k1_0 = f.历文(o1_0.文件目, 简文件库.dir)