This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 来歴 | |
# 白兵戦情報で次の2つを白兵戦前士気チェックから引継ぐ | |
# 強襲を受ける方向、障害地形をまたぐ強襲 | |
# 国兵種別と体形の組合せが組合せが正しくない時にメッセージを表示し、縦隊と扱う。 | |
# 特殊建築物での士気チェックを追加 | |
# 追加士気修正を追加 Aで歩兵だけでなく、騎兵と砲兵にも適用 | |
# 白兵戦データコピーの修正 auinitの参照変数iをimに | |
# 攻撃に後続部隊を追加 | |
# 騎兵突撃時の士気チェック追加 | |
# 騎兵突撃時の方陣実現判定追加 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xlwings as xw | |
import numpy as np | |
import time | |
import sys,os | |
# To the extent possible under law, ALBERT Inc. has waived all copyright and | |
# related or neighboring rights to this work. | |
# For legal code, see ``CC0.txt`` distributed with this file or | |
# <https://creativecommons.org/publicdomain/zero/1.0/>_. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xlwings as xw | |
import numpy as np | |
import time | |
# To the extent possible under law, ALBERT Inc. has waived all copyright and | |
# related or neighboring rights to this work. | |
# For legal code, see ``CC0.txt`` distributed with this file or | |
# <https://creativecommons.org/publicdomain/zero/1.0/>_. | |
# | |
# We thank to the original author Sebastiano Vigna. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 来歴 | |
# 白兵戦情報で次の2つを白兵戦前士気チェックから引継ぐ | |
# 強襲を受ける方向、障害地形をまたぐ強襲 | |
# 国兵種別と体形の組合せが組合せが正しくない時にメッセージを表示し、縦隊と扱う。 | |
# 特殊建築物での士気チェックを追加 | |
# 追加士気修正を追加 Aで歩兵だけでなく、騎兵と砲兵にも適用 | |
# 白兵戦データコピーの修正 auinitの参照変数iをimに | |
# 攻撃に後続部隊を追加 | |
# 騎兵突撃時の士気チェック追加 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 来歴 | |
# 白兵戦情報で次の2つを白兵戦前士気チェックから引継ぐ | |
# 強襲を受ける方向、障害地形をまたぐ強襲 | |
# 国兵種別と体形の組合せが組合せが正しくない時にメッセージを表示し、縦隊と扱う。 | |
# 特殊建築物での士気チェックを追加 | |
# 追加士気修正を追加 Aで歩兵だけでなく、騎兵と砲兵にも適用 | |
# 白兵戦データコピーの修正 auinitの参照変数iをimに | |
# 攻撃に後続部隊を追加 | |
import xlwings as xw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 来歴 | |
# 白兵戦情報で次の2つを白兵戦前士気チェックから引継ぐ | |
# 強襲を受ける方向、障害地形をまたぐ強襲 | |
# 国兵種別と体形の組合せが組合せが正しくない時にメッセージを表示し、縦隊と扱う。 | |
# 特殊建築物での士気チェックを追加 | |
# 追加士気修正を追加 Aで歩兵だけでなく、騎兵と砲兵にも適用 | |
# 白兵戦データコピーの修正 auinitの参照変数iをimに | |
import xlwings as xw | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#OOC判定用にユニットに情報追加(OOB_Sub)なお、指揮官同士のOOCは除外した。 | |
import xml.etree.ElementTree as ET | |
import xml.dom.minidom as md | |
import re | |
import csv | |
# 師団番号検索パターン | |
pattern = "(.*)_(.*)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xlwings as xw | |
#支援ツールのあるディレクトリと名称を設定 | |
dir_name = 'D:\WORK\\temp\BatailleWK' | |
tool_name= 'D:\WORK\\temp\BatailleWK\Bataille.xlsm' | |
#外部データのファイル名、シート名、コピー範囲、支援ツールのシート名を設定 | |
#(注意事項)ゲームに応じて外部データのシート名称(2列目のデータ)を変更 | |
table_name =[['moralesheet','Gross','A1:i50','部隊モラル表'], | |
['Carresheet','Berlin','A1:S39','方陣表'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xlwings as xw | |
import time | |
import re | |
import random | |
path = r"D:\WORK\temp\BatailleWK\Bataille.xlsm" | |
sheetname1 = "cnst" | |
sheetname2 = "def" | |
sheetname3 = "inf" | |
sheetname4 = "射撃" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xlwings as xw | |
import time | |
import re | |
import random | |
path = r"D:\WORK\temp\BatailleWK\Bataille.xlsm" | |
sheetname1 = "cnst" | |
sheetname2 = "def" | |
sheetname3 = "inf" | |
sheetname4 = "射撃" |
NewerOlder